diff options
| author | Sean Bruno <sbruno@FreeBSD.org> | 2016-10-18 14:02:45 +0000 |
|---|---|---|
| committer | Sean Bruno <sbruno@FreeBSD.org> | 2016-10-18 14:02:45 +0000 |
| commit | 2fe66646bd662bb3fbcd363b8b95457a917aec9c (patch) | |
| tree | 8afd87750749c2e6d2f83e893657abb655b134ab | |
| parent | abf38392c619c2acbe9fe8ec65595185f42cdbfd (diff) | |
Notes
| -rw-r--r-- | sys/net/iflib.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/net/iflib.c b/sys/net/iflib.c index 3dca062f453a..42f0d4ce93ec 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -3903,6 +3903,10 @@ _iflib_assert(if_shared_ctx_t sctx) MPASS(sctx->isc_ntxd_default[0]); } +#define DEFAULT_CAPS (IFCAP_TXCSUM_IPV6 | IFCAP_RXCSUM_IPV6 | IFCAP_HWCSUM | IFCAP_LRO | \ + IFCAP_TSO4 | IFCAP_TSO6 | IFCAP_VLAN_HWTAGGING | \ + IFCAP_VLAN_MTU | IFCAP_VLAN_HWFILTER | IFCAP_VLAN_HWTSO | IFCAP_HWSTATS) + static int iflib_register(if_ctx_t ctx) { @@ -3937,8 +3941,9 @@ iflib_register(if_ctx_t ctx) if_setqflushfn(ifp, iflib_if_qflush); if_setflags(ifp, IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST); - if_setcapabilities(ifp, 0); - if_setcapenable(ifp, 0); + /* XXX - move this in to the driver for non-default settings */ + if_setcapabilities(ifp, DEFAULT_CAPS); + if_setcapenable(ifp, DEFAULT_CAPS); ctx->ifc_vlan_attach_event = EVENTHANDLER_REGISTER(vlan_config, iflib_vlan_register, ctx, |
