Commit c44d7995 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller

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: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bde3528f
...@@ -7022,6 +7022,7 @@ static int niu_ethflow_to_class(int flow_type, u64 *class) ...@@ -7022,6 +7022,7 @@ static int niu_ethflow_to_class(int flow_type, u64 *class)
case UDP_V4_FLOW: case UDP_V4_FLOW:
*class = CLASS_CODE_UDP_IPV4; *class = CLASS_CODE_UDP_IPV4;
break; break;
case AH_ESP_V4_FLOW:
case AH_V4_FLOW: case AH_V4_FLOW:
case ESP_V4_FLOW: case ESP_V4_FLOW:
*class = CLASS_CODE_AH_ESP_IPV4; *class = CLASS_CODE_AH_ESP_IPV4;
...@@ -7035,6 +7036,7 @@ static int niu_ethflow_to_class(int flow_type, u64 *class) ...@@ -7035,6 +7036,7 @@ static int niu_ethflow_to_class(int flow_type, u64 *class)
case UDP_V6_FLOW: case UDP_V6_FLOW:
*class = CLASS_CODE_UDP_IPV6; *class = CLASS_CODE_UDP_IPV6;
break; break;
case AH_ESP_V6_FLOW:
case AH_V6_FLOW: case AH_V6_FLOW:
case ESP_V6_FLOW: case ESP_V6_FLOW:
*class = CLASS_CODE_AH_ESP_IPV6; *class = CLASS_CODE_AH_ESP_IPV6;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment