if_hwassist should be initialized with CSUM, rather than IFCAP, flags.

Submitted by:	yongari
MFC after:	1 week
This commit is contained in:
Robert Watson 2009-03-16 09:22:34 +00:00
parent 910ac6da21
commit fe89fae166
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189871

View File

@ -138,8 +138,8 @@ lo_clone_create(struct if_clone *ifc, int unit, caddr_t params)
ifp->if_ioctl = loioctl;
ifp->if_output = looutput;
ifp->if_snd.ifq_maxlen = ifqmaxlen;
ifp->if_hwassist = ifp->if_capabilities = ifp->if_capenable =
IFCAP_HWCSUM;
ifp->if_capabilities = ifp->if_capenable = IFCAP_HWCSUM;
ifp->if_hwassist = CSUM_IP | CSUM_TCP | CSUM_UDP;
if_attach(ifp);
bpfattach(ifp, DLT_NULL, sizeof(u_int32_t));
if (V_loif == NULL)