diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-10-28 05:50:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-28 05:50:44 -0400 |
commit | 9c1bbbaf3eef357b15c0e94085d96f18c6f1bde6 (patch) | |
tree | 2d6639d768263ddf13ec486d416df69b481ad712 /drivers/net/sfc | |
parent | 5beefb4f7793e5bb4d3527ee6559f8281d7d2b76 (diff) |
sfc: Really allow RX checksum offload to be disabled
We have never checked the efx_nic::rx_checksum_enabled flag everywhere
we should, and since the switch to GRO we don't check it anywhere.
It's simplest to check it in the one place where we initialise the
per-packet checksummed flag.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r-- | drivers/net/sfc/falcon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c index 8776432f683c..865638b035bf 100644 --- a/drivers/net/sfc/falcon.c +++ b/drivers/net/sfc/falcon.c | |||
@@ -869,8 +869,9 @@ static void falcon_handle_rx_event(struct efx_channel *channel, | |||
869 | * UDP/IPv4, then we can rely on the hardware checksum. | 869 | * UDP/IPv4, then we can rely on the hardware checksum. |
870 | */ | 870 | */ |
871 | checksummed = | 871 | checksummed = |
872 | rx_ev_hdr_type == FSE_AB_RX_EV_HDR_TYPE_IPV4_TCP || | 872 | efx->rx_checksum_enabled && |
873 | rx_ev_hdr_type == FSE_AB_RX_EV_HDR_TYPE_IPV4_UDP; | 873 | (rx_ev_hdr_type == FSE_AB_RX_EV_HDR_TYPE_IPV4_TCP || |
874 | rx_ev_hdr_type == FSE_AB_RX_EV_HDR_TYPE_IPV4_UDP); | ||
874 | } else { | 875 | } else { |
875 | falcon_handle_rx_not_ok(rx_queue, event, &rx_ev_pkt_ok, | 876 | falcon_handle_rx_not_ok(rx_queue, event, &rx_ev_pkt_ok, |
876 | &discard); | 877 | &discard); |