https://github.com/torvalds/linux
Revision 0a2a6f498fa060cc0d592d56148da856e9d77bd8 authored by Roi Dayan on 27 May 2020, 18:46:09 UTC, committed by Saeed Mahameed on 29 May 2020, 20:07:52 UTC
It's bytes, packets, lastused.

Fixes: fcb64c0f5640 ("net/mlx5: E-Switch, add ingress rate support")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
1 parent 8fc3e29
Raw File
Tip revision: 0a2a6f498fa060cc0d592d56148da856e9d77bd8 authored by Roi Dayan on 27 May 2020, 18:46:09 UTC
net/mlx5e: Fix stats update for matchall classifier
Tip revision: 0a2a6f4
lshrdi3.c
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * lib/lshrdi3.c
 */

#include <linux/module.h>
#include <linux/libgcc.h>

long long notrace __lshrdi3(long long u, word_type b)
{
	DWunion uu, w;
	word_type bm;

	if (b == 0)
		return u;

	uu.ll = u;
	bm = 32 - b;

	if (bm <= 0) {
		w.s.high = 0;
		w.s.low = (unsigned int) uu.s.high >> -bm;
	} else {
		const unsigned int carries = (unsigned int) uu.s.high << bm;

		w.s.high = (unsigned int) uu.s.high >> b;
		w.s.low = ((unsigned int) uu.s.low >> b) | carries;
	}

	return w.ll;
}
EXPORT_SYMBOL(__lshrdi3);
back to top