diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-03-16 09:22:34 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-03-16 09:22:34 +0000 |
commit | 6fdc8ee7b267e576b025ea1532da6e5671c14f8d (patch) | |
tree | 7a54e7ee999653f8d99ca961e00dc24f2be4689d /sys | |
parent | 3473d8832459384bff6d45a7b9a98f7aa864ac11 (diff) | |
download | FreeBSD-src-6fdc8ee7b267e576b025ea1532da6e5671c14f8d.zip FreeBSD-src-6fdc8ee7b267e576b025ea1532da6e5671c14f8d.tar.gz |
if_hwassist should be initialized with CSUM, rather than IFCAP, flags.
Submitted by: yongari
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 3fd003e..dc297fc 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -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) |