Use the appropriate IPv4 or IPv6 TSO HW assist flag

MFC after:	2 weeks
This commit is contained in:
bryanv 2015-01-01 02:03:09 +00:00
parent 6783859f31
commit 76a626e11c

View File

@ -3006,9 +3006,9 @@ vtnet_reinit(struct vtnet_softc *sc)
if (ifp->if_capenable & IFCAP_TXCSUM_IPV6)
ifp->if_hwassist |= VTNET_CSUM_OFFLOAD_IPV6;
if (ifp->if_capenable & IFCAP_TSO4)
ifp->if_hwassist |= CSUM_TSO;
ifp->if_hwassist |= CSUM_IP_TSO;
if (ifp->if_capenable & IFCAP_TSO6)
ifp->if_hwassist |= CSUM_TSO; /* No CSUM_TSO_IPV6. */
ifp->if_hwassist |= CSUM_IP6_TSO;
if (sc->vtnet_flags & VTNET_FLAG_CTRL_VQ)
vtnet_init_rx_filters(sc);