From fe1a7e4ebbd78dd0665a2b92670f9ac511ddc501 Mon Sep 17 00:00:00 2001 From: andre Date: Fri, 29 Sep 2006 13:17:16 +0000 Subject: Only advertize IFCAP_TSO4 capabilities. IPv6 is not yet supported. Reviewed by: jfv --- sys/dev/em/if_em.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 112f796..e62271c 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -911,8 +911,8 @@ em_ioctl(struct ifnet *ifp, u_long command, caddr_t data) ifp->if_capenable ^= IFCAP_HWCSUM; reinit = 1; } - if (mask & IFCAP_TSO) { - ifp->if_capenable ^= IFCAP_TSO; + if (mask & IFCAP_TSO4) { + ifp->if_capenable ^= IFCAP_TSO4; reinit = 1; } if (mask & IFCAP_VLAN_HWTAGGING) { @@ -2356,8 +2356,8 @@ em_setup_interface(device_t dev, struct adapter *adapter) /* Enable TSO if available */ if ((adapter->hw.mac_type > em_82544) && (adapter->hw.mac_type != em_82547)) { - ifp->if_capabilities |= IFCAP_TSO; - ifp->if_capenable |= IFCAP_TSO; + ifp->if_capabilities |= IFCAP_TSO4; + ifp->if_capenable |= IFCAP_TSO4; } /* -- cgit v1.1