diff options
author | Michael Chan <mchan@broadcom.com> | 2010-07-03 16:42:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-04 14:44:00 -0400 |
commit | fdc8541d693a04ba3d6c335dace19b8362ac4e83 (patch) | |
tree | 562c2b0bb62f52d21ca98d0d8a3e05fb325bf8af /drivers/net/bnx2.h | |
parent | 3d5f3a7bbd06065b06c7f65f948437ded40255ec (diff) |
bnx2: Add support for skb->rxhash.
Add skb->rxhash support for TCP packets only because the bnx2 RSS hash
does not hash UDP ports.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r-- | drivers/net/bnx2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index ddaa3fc99876..b9af6bcef894 100644 --- a/drivers/net/bnx2.h +++ b/drivers/net/bnx2.h | |||
@@ -295,6 +295,9 @@ struct l2_fhdr { | |||
295 | #define L2_FHDR_ERRORS_TCP_XSUM (1<<28) | 295 | #define L2_FHDR_ERRORS_TCP_XSUM (1<<28) |
296 | #define L2_FHDR_ERRORS_UDP_XSUM (1<<31) | 296 | #define L2_FHDR_ERRORS_UDP_XSUM (1<<31) |
297 | 297 | ||
298 | #define L2_FHDR_STATUS_USE_RXHASH \ | ||
299 | (L2_FHDR_STATUS_TCP_SEGMENT | L2_FHDR_STATUS_RSS_HASH) | ||
300 | |||
298 | u32 l2_fhdr_hash; | 301 | u32 l2_fhdr_hash; |
299 | #if defined(__BIG_ENDIAN) | 302 | #if defined(__BIG_ENDIAN) |
300 | u16 l2_fhdr_pkt_len; | 303 | u16 l2_fhdr_pkt_len; |