em: Enable TSO on all PCI-E chips
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 3 Sep 2013 08:30:58 +0000 (16:30 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 3 Sep 2013 08:30:58 +0000 (16:30 +0800)
sys/dev/netif/em/if_em.c

index 808482a..35b9cbe 100644 (file)
@@ -489,13 +489,9 @@ em_attach(device_t dev)
                adapter->flags |= EM_FLAG_TSO_PULLEX;
                /* FALL THROUGH */
 
-       case e1000_82573:
-       case e1000_82574:
-       case e1000_80003es2lan:
-               adapter->flags |= EM_FLAG_TSO;
-               break;
-
        default:
+               if (pci_is_pcie(dev))
+                       adapter->flags |= EM_FLAG_TSO;
                break;
        }