소스 검색

ixgbe: use NETIF_F_LRO

Both ETH_FLAG_LRO and NETIF_F_LRO have the same value, but NETIF_F_LRO
is intended to use with netdev->features.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stanislaw Gruszka 15 년 전
부모
커밋
0a17d8c744
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/net/ixgbe/ixgbe_ethtool.c

+ 1 - 1
drivers/net/ixgbe/ixgbe_ethtool.c

@@ -2237,7 +2237,7 @@ static int ixgbe_set_flags(struct net_device *netdev, u32 data)
 				break;
 				break;
 			}
 			}
 		} else if (!adapter->rx_itr_setting) {
 		} else if (!adapter->rx_itr_setting) {
-			netdev->features &= ~ETH_FLAG_LRO;
+			netdev->features &= ~NETIF_F_LRO;
 			if (data & ETH_FLAG_LRO)
 			if (data & ETH_FLAG_LRO)
 				e_info("rx-usecs set to 0, "
 				e_info("rx-usecs set to 0, "
 					"LRO/RSC cannot be enabled.\n");
 					"LRO/RSC cannot be enabled.\n");