diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-02-12 03:37:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-16 02:31:42 -0500 |
commit | 052a38e096dece43e38a19a896ae7ad019415bc1 (patch) | |
tree | 127b34c6948872a535bfc13e102d852515c44679 /drivers/net/bnx2x.h | |
parent | c2c8b03e200bdda3ba23d27f5c33bac784dced01 (diff) |
bnx2x: Using registers name
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x.h')
-rw-r--r-- | drivers/net/bnx2x.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h index 12d2d0bd9a42..9834a86d8139 100644 --- a/drivers/net/bnx2x.h +++ b/drivers/net/bnx2x.h | |||
@@ -446,10 +446,13 @@ struct bnx2x_fastpath { | |||
446 | #define BNX2X_RX_CSUM_OK(cqe) \ | 446 | #define BNX2X_RX_CSUM_OK(cqe) \ |
447 | (!(BNX2X_L4_CSUM_ERR(cqe) || BNX2X_IP_CSUM_ERR(cqe))) | 447 | (!(BNX2X_L4_CSUM_ERR(cqe) || BNX2X_IP_CSUM_ERR(cqe))) |
448 | 448 | ||
449 | #define BNX2X_PRS_FLAG_OVERETH_IPV4(flags) \ | ||
450 | (((le16_to_cpu(flags) & \ | ||
451 | PARSING_FLAGS_OVER_ETHERNET_PROTOCOL) >> \ | ||
452 | PARSING_FLAGS_OVER_ETHERNET_PROTOCOL_SHIFT) \ | ||
453 | == PRS_FLAG_OVERETH_IPV4) | ||
449 | #define BNX2X_RX_SUM_FIX(cqe) \ | 454 | #define BNX2X_RX_SUM_FIX(cqe) \ |
450 | ((le16_to_cpu(cqe->fast_path_cqe.pars_flags.flags) & \ | 455 | BNX2X_PRS_FLAG_OVERETH_IPV4(cqe->fast_path_cqe.pars_flags.flags) |
451 | PARSING_FLAGS_OVER_ETHERNET_PROTOCOL) == \ | ||
452 | (1 << PARSING_FLAGS_OVER_ETHERNET_PROTOCOL_SHIFT)) | ||
453 | 456 | ||
454 | 457 | ||
455 | #define FP_USB_FUNC_OFF (2 + 2*HC_USTORM_SB_NUM_INDICES) | 458 | #define FP_USB_FUNC_OFF (2 + 2*HC_USTORM_SB_NUM_INDICES) |