diff options
author | 2023-05-16 10:41:46 -0700 | |
---|---|---|
committer | 2023-05-17 09:25:04 +0100 | |
commit | 60d758659f1fb49e0d5b6ac2691ede8c0958795b (patch) | |
tree | b737d1b4cac4f8270fcc6650e23042c9e8c1a4f4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue (diff) | |
download | wireguard-linux-60d758659f1fb49e0d5b6ac2691ede8c0958795b.tar.xz wireguard-linux-60d758659f1fb49e0d5b6ac2691ede8c0958795b.zip |
igb: fix bit_shift to be in [1..8] range
In igb_hash_mc_addr() the expression:
"mc_addr[4] >> 8 - bit_shift", right shifting "mc_addr[4]"
shift by more than 7 bits always yields zero, so hash becomes not so different.
Add initialization with bit_shift = 1 and add a loop condition to ensure
bit_shift will be always in [1..8] range.
Fixes: 9d5c824399de ("igb: PCI-Express 82575 Gigabit Ethernet driver")
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions