From: Padmanabh Ratnakar Date: Fri, 13 Jul 2012 02:45:51 +0000 (+0000) Subject: be2net: Add description about various RSS hash types X-Git-Tag: v2.6.39-400.9.0~363 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=187faced4b64e3182865d8acf78ec219ae443a11;p=users%2Fjedix%2Flinux-maple.git 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 Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h index c6593e173862..e7c50feed87a 100644 --- a/drivers/net/benet/be_cmds.h +++ b/drivers/net/benet/be_cmds.h @@ -1082,8 +1082,18 @@ struct be_cmd_resp_query_fw_cfg { u32 function_caps; }; -/******************** RSS Config *******************/ -/* RSS types */ +/******************** RSS Config ****************************************/ +/* RSS type Input parameters used to compute RX hash + * RSS_ENABLE_IPV4 SRC IPv4, DST IPv4 + * RSS_ENABLE_TCP_IPV4 SRC IPv4, DST IPv4, TCP SRC PORT, TCP DST PORT + * RSS_ENABLE_IPV6 SRC IPv6, DST IPv6 + * RSS_ENABLE_TCP_IPV6 SRC IPv6, DST IPv6, TCP SRC PORT, TCP DST PORT + * RSS_ENABLE_UDP_IPV4 SRC IPv4, DST IPv4, UDP SRC PORT, UDP DST PORT + * RSS_ENABLE_UDP_IPV6 SRC IPv6, DST IPv6, UDP SRC PORT, UDP DST PORT + * + * When multiple RSS types are enabled, HW picks the best hash policy + * based on the type of the received packet. + */ #define RSS_ENABLE_NONE 0x0 #define RSS_ENABLE_IPV4 0x1 #define RSS_ENABLE_TCP_IPV4 0x2