]> Pileus Git - ~andy/linux/commit
bnx2x: prevent GRO false checksum claims
authorYuval Mintz <yuvalmin@broadcom.com>
Wed, 24 Apr 2013 01:44:58 +0000 (01:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Apr 2013 20:33:53 +0000 (16:33 -0400)
commit2c2d06d5126e62e90aee71da9b85c9d95de6bbe2
tree15343681c0cd5282d6c72b9b0a47cd09ed9726dd
parent0996076973856e093c84ed870501fb9d5c72f8a3
bnx2x: prevent GRO false checksum claims

This patch introduces a more robust error handling flow in case of incorrect
behaviour by the FW when passing on GRO aggregations.

Although this should never happen (i.e., this is merely a theoretical fix),
if the bnx2x driver was to receive a GRO from FW with protocol other than
IPv4/IPv6, the driver would falsely claim to have performed partial
checksum and set various incorrect fields in the skb header.

Current behaviour of the bnx2x driver (i.e., print an error) is insufficient.
This patch remedies this by simply preventing the false claims.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c