diff options
author | Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> | 2012-07-12 22:45:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-17 02:02:36 -0400 |
commit | 73dea3983a9d2e413e1c065ed4e132a7d4127929 (patch) | |
tree | b35e3b2f7de7ed456654963ecb1288a19c6fa888 /drivers/net/ethernet/emulex | |
parent | 036be6dbcfbe3da14be9b3463b94a5f79d8a2d71 (diff) |
be2net: Add description about various RSS hash types
Incorporated review comment from Eric Dumazet. Added description
about different RSS hash types which adapter is capable of.
Will add support for ETHTOOL_GRXFH and ETHTOOL_SRXFX as suggested
by Ben Hutchings in a later patch.
Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_cmds.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.h b/drivers/net/ethernet/emulex/benet/be_cmds.h index 45d70def92d6..d5a4dedf1132 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.h +++ b/drivers/net/ethernet/emulex/benet/be_cmds.h | |||
@@ -1082,8 +1082,18 @@ struct be_cmd_resp_query_fw_cfg { | |||
1082 | u32 function_caps; | 1082 | u32 function_caps; |
1083 | }; | 1083 | }; |
1084 | 1084 | ||
1085 | /******************** RSS Config *******************/ | 1085 | /******************** RSS Config ****************************************/ |
1086 | /* RSS types */ | 1086 | /* RSS type Input parameters used to compute RX hash |
1087 | * RSS_ENABLE_IPV4 SRC IPv4, DST IPv4 | ||
1088 | * RSS_ENABLE_TCP_IPV4 SRC IPv4, DST IPv4, TCP SRC PORT, TCP DST PORT | ||
1089 | * RSS_ENABLE_IPV6 SRC IPv6, DST IPv6 | ||
1090 | * RSS_ENABLE_TCP_IPV6 SRC IPv6, DST IPv6, TCP SRC PORT, TCP DST PORT | ||
1091 | * RSS_ENABLE_UDP_IPV4 SRC IPv4, DST IPv4, UDP SRC PORT, UDP DST PORT | ||
1092 | * RSS_ENABLE_UDP_IPV6 SRC IPv6, DST IPv6, UDP SRC PORT, UDP DST PORT | ||
1093 | * | ||
1094 | * When multiple RSS types are enabled, HW picks the best hash policy | ||
1095 | * based on the type of the received packet. | ||
1096 | */ | ||
1087 | #define RSS_ENABLE_NONE 0x0 | 1097 | #define RSS_ENABLE_NONE 0x0 |
1088 | #define RSS_ENABLE_IPV4 0x1 | 1098 | #define RSS_ENABLE_IPV4 0x1 |
1089 | #define RSS_ENABLE_TCP_IPV4 0x2 | 1099 | #define RSS_ENABLE_TCP_IPV4 0x2 |