aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 53f41b649f03..b14192f369db 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -420,14 +420,12 @@ static void ixgbe_receive_skb(struct ixgbe_adapter *adapter,
420 * @skb: skb currently being received and modified 420 * @skb: skb currently being received and modified
421 **/ 421 **/
422static inline void ixgbe_rx_checksum(struct ixgbe_adapter *adapter, 422static inline void ixgbe_rx_checksum(struct ixgbe_adapter *adapter,
423 u32 status_err, 423 u32 status_err, struct sk_buff *skb)
424 struct sk_buff *skb)
425{ 424{
426 skb->ip_summed = CHECKSUM_NONE; 425 skb->ip_summed = CHECKSUM_NONE;
427 426
428 /* Ignore Checksum bit is set, or rx csum disabled */ 427 /* Rx csum disabled */
429 if ((status_err & IXGBE_RXD_STAT_IXSM) || 428 if (!(adapter->flags & IXGBE_FLAG_RX_CSUM_ENABLED))
430 !(adapter->flags & IXGBE_FLAG_RX_CSUM_ENABLED))
431 return; 429 return;
432 430
433 /* if IP and error */ 431 /* if IP and error */