diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-04-08 09:49:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-11 16:28:44 -0400 |
commit | c44d79950b2daa1025e62eede73e4e4a274d1ef3 (patch) | |
tree | f41b834ae30098cd8a831a8d75ac08318ca6f5b9 | |
parent | bde3528f17aebb9c74d6b0ef81860868c91af049 (diff) |
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>
-rw-r--r-- | drivers/net/niu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index ab4e7dd82d0b..9e6330bc0531 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -7022,6 +7022,7 @@ static int niu_ethflow_to_class(int flow_type, u64 *class) | |||
7022 | case UDP_V4_FLOW: | 7022 | case UDP_V4_FLOW: |
7023 | *class = CLASS_CODE_UDP_IPV4; | 7023 | *class = CLASS_CODE_UDP_IPV4; |
7024 | break; | 7024 | break; |
7025 | case AH_ESP_V4_FLOW: | ||
7025 | case AH_V4_FLOW: | 7026 | case AH_V4_FLOW: |
7026 | case ESP_V4_FLOW: | 7027 | case ESP_V4_FLOW: |
7027 | *class = CLASS_CODE_AH_ESP_IPV4; | 7028 | *class = CLASS_CODE_AH_ESP_IPV4; |
@@ -7035,6 +7036,7 @@ static int niu_ethflow_to_class(int flow_type, u64 *class) | |||
7035 | case UDP_V6_FLOW: | 7036 | case UDP_V6_FLOW: |
7036 | *class = CLASS_CODE_UDP_IPV6; | 7037 | *class = CLASS_CODE_UDP_IPV6; |
7037 | break; | 7038 | break; |
7039 | case AH_ESP_V6_FLOW: | ||
7038 | case AH_V6_FLOW: | 7040 | case AH_V6_FLOW: |
7039 | case ESP_V6_FLOW: | 7041 | case ESP_V6_FLOW: |
7040 | *class = CLASS_CODE_AH_ESP_IPV6; | 7042 | *class = CLASS_CODE_AH_ESP_IPV6; |