aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJesse Brandeburg <[email protected]>2021-02-23 23:47:05 +0000
committerTony Nguyen <[email protected]>2021-06-18 15:59:46 +0000
commitdda90cb90a5ced4ebfb75e3f06d59fa1abb58f65 (patch)
treecaa634f748ecf8a77d8eb29f09d43eb4dfd47259 /net/unix/af_unix.c
parentMerge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/... (diff)
downloadkernel-dda90cb90a5ced4ebfb75e3f06d59fa1abb58f65.tar.gz
kernel-dda90cb90a5ced4ebfb75e3f06d59fa1abb58f65.zip
ice: report hash type such as L2/L3/L4
The hardware is reporting the type of the hash used for RSS as a PTYPE field in the receive descriptor. Use this value to set the skb packet hash type by extending the hash type table to cover all 10-bits of possible values (requiring some variables to be changed from u8 to u16), and then use that table to convert to one of the possible values in enum pkt_hash_types. While we're here, remove the unused ptype struct value, which makes table init easier for the zero entries, and use ranged initializer to remove a bunch of code (works with gcc and clang). Without this change, the kernel will recalculate the hash in software, which can consume extra CPU cycles. Co-developed-by: Kiran Patil <[email protected]> Signed-off-by: Kiran Patil <[email protected]> Signed-off-by: Jesse Brandeburg <[email protected]> Tested-by: Tony Brelinski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions