Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

niu: Recognise original ethtool class code for AH/ESP flow hashing

When the RX network flow classification interface was originally
defined for reporting and controlling of flow hashing, AH and ESP were
not given distinct flow class codes (apparently because the Sun
Neptune hardware treats them very similarly).

For flow steering, they must be distinguished, so new and separate
flow class codes were added for AH and ESP. But for backward-
compatibility, flow hash operations should continue to support the
original class codes.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ben Hutchings and committed by
David S. Miller
c44d7995 bde3528f

+2
+2
drivers/net/niu.c
··· 7022 7022 case UDP_V4_FLOW: 7023 7023 *class = CLASS_CODE_UDP_IPV4; 7024 7024 break; 7025 + case AH_ESP_V4_FLOW: 7025 7026 case AH_V4_FLOW: 7026 7027 case ESP_V4_FLOW: 7027 7028 *class = CLASS_CODE_AH_ESP_IPV4; ··· 7036 7035 case UDP_V6_FLOW: 7037 7036 *class = CLASS_CODE_UDP_IPV6; 7038 7037 break; 7038 + case AH_ESP_V6_FLOW: 7039 7039 case AH_V6_FLOW: 7040 7040 case ESP_V6_FLOW: 7041 7041 *class = CLASS_CODE_AH_ESP_IPV6;