Commit e488921f authored by Michal Schmidt's avatar Michal Schmidt Committed by David S. Miller
Browse files

bnx2x: fix rx checksum validation for IPv6

Commit d6cb3e41

 "bnx2x: fix checksum validation" caused a performance
regression for IPv6. Rx checksum offload does not work. IPv6 packets
are passed to the stack with CHECKSUM_NONE.

The hardware obviously cannot perform IP checksum validation for IPv6,
because there is no checksum in the IPv6 header. This should not prevent

Tested on BCM57711.
Signed-off-by: default avatarMichal Schmidt <>
Acked-by: default avatarEric Dumazet <>
Acked-by: default avatarEilon Greenstein <>
Signed-off-by: default avatarDavid S. Miller <>
parent c2546372
......@@ -662,14 +662,16 @@ void bnx2x_csum_validate(struct sk_buff *skb, union eth_rx_cqe *cqe,
struct bnx2x_fastpath *fp,
struct bnx2x_eth_q_stats *qstats)
/* Do nothing if no IP/L4 csum validation was done */
/* Do nothing if no L4 csum validation was done.
* We do not check whether IP csum was validated. For IPv4 we assume
* that if the card got as far as validating the L4 csum, it also
* validated the IP csum. IPv6 has no IP csum.
if (cqe->fast_path_cqe.status_flags &
/* If both IP/L4 validation were done, check if an error was found. */
/* If L4 validation was done, check if an error was found. */
if (cqe->fast_path_cqe.type_error_flags &
Supports Markdown
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