]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ixgbe: turn NETIF_F_HW_L2FW_DOFFLOAD off by default
authorJohn Fastabend <john.r.fastabend@intel.com>
Tue, 12 Nov 2013 12:13:29 +0000 (12:13 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 30 Nov 2013 08:15:16 +0000 (00:15 -0800)
NETIF_F_HW_L2FW_DOFFLOAD allows upper layer net devices such
as macvlan to use queues in the hardware to directly submit and
receive skbs.

This creates a subtle change in the datapath though. One change
being the skb may no longer use the root devices qdisc.

Because users may not expect this we can't enable the feature
by default unless the hardware can offload all the software
functionality above it. So for now disable it by default and
let users opt in.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

index ad9d67095d52479199acf29170843376f3b8b435..cc06854296a379a6f5d1fac21ecf9412d94d477b 100644 (file)
@@ -7986,10 +7986,9 @@ static int ixgbe_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
                           NETIF_F_TSO |
                           NETIF_F_TSO6 |
                           NETIF_F_RXHASH |
-                          NETIF_F_RXCSUM |
-                          NETIF_F_HW_L2FW_DOFFLOAD;
+                          NETIF_F_RXCSUM;
 
-       netdev->hw_features = netdev->features;
+       netdev->hw_features = netdev->features | NETIF_F_HW_L2FW_DOFFLOAD;
 
        switch (adapter->hw.mac.type) {
        case ixgbe_mac_82599EB: