aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/nic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc/nic.c')
-rw-r--r--drivers/net/sfc/nic.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/sfc/nic.c b/drivers/net/sfc/nic.c
index 10f1cb79c147..5ac9fa2cd3bc 100644
--- a/drivers/net/sfc/nic.c
+++ b/drivers/net/sfc/nic.c
@@ -852,7 +852,6 @@ efx_handle_rx_event(struct efx_channel *channel, const efx_qword_t *event)
852 unsigned expected_ptr; 852 unsigned expected_ptr;
853 bool rx_ev_pkt_ok, discard = false, checksummed; 853 bool rx_ev_pkt_ok, discard = false, checksummed;
854 struct efx_rx_queue *rx_queue; 854 struct efx_rx_queue *rx_queue;
855 struct efx_nic *efx = channel->efx;
856 855
857 /* Basic packet information */ 856 /* Basic packet information */
858 rx_ev_byte_cnt = EFX_QWORD_FIELD(*event, FSF_AZ_RX_EV_BYTE_CNT); 857 rx_ev_byte_cnt = EFX_QWORD_FIELD(*event, FSF_AZ_RX_EV_BYTE_CNT);
@@ -875,9 +874,8 @@ efx_handle_rx_event(struct efx_channel *channel, const efx_qword_t *event)
875 * UDP/IP, then we can rely on the hardware checksum. 874 * UDP/IP, then we can rely on the hardware checksum.
876 */ 875 */
877 checksummed = 876 checksummed =
878 likely(efx->rx_checksum_enabled) && 877 rx_ev_hdr_type == FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_TCP ||
879 (rx_ev_hdr_type == FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_TCP || 878 rx_ev_hdr_type == FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_UDP;
880 rx_ev_hdr_type == FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_UDP);
881 } else { 879 } else {
882 efx_handle_rx_not_ok(rx_queue, event, &rx_ev_pkt_ok, &discard); 880 efx_handle_rx_not_ok(rx_queue, event, &rx_ev_pkt_ok, &discard);
883 checksummed = false; 881 checksummed = false;