aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchik@FreeBSD.org>2015-05-18 06:07:02 +0000
committerAndrew Rybchenko <arybchik@FreeBSD.org>2015-05-18 06:07:02 +0000
commit8a343f93e6a77583040a2f14e12554e9c214ed57 (patch)
tree54ed0b035afad4f5cecc8976ce88e26def8a7305 /sys
parent921f3bd2df78c5a33ee4a6cbf7cbb8d46da5799b (diff)
downloadsrc-8a343f93e6a77583040a2f14e12554e9c214ed57.tar.gz
src-8a343f93e6a77583040a2f14e12554e9c214ed57.zip
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sfxge/sfxge.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/sfxge/sfxge.c b/sys/dev/sfxge/sfxge.c
index 12a121003480..150df724ba8c 100644
--- a/sys/dev/sfxge/sfxge.c
+++ b/sys/dev/sfxge/sfxge.c
@@ -63,7 +63,7 @@ __FBSDID("$FreeBSD$");
IFCAP_RXCSUM | IFCAP_TXCSUM | \
IFCAP_RXCSUM_IPV6 | IFCAP_TXCSUM_IPV6 | \
IFCAP_TSO4 | IFCAP_TSO6 | \
- IFCAP_JUMBO_MTU | IFCAP_LRO | \
+ IFCAP_JUMBO_MTU | \
IFCAP_VLAN_HWTSO | IFCAP_LINKSTATE | IFCAP_HWSTATS)
#define SFXGE_CAP_ENABLE SFXGE_CAP
#define SFXGE_CAP_FIXED (IFCAP_VLAN_MTU | \
@@ -89,7 +89,6 @@ SYSCTL_INT(_hw_sfxge, OID_AUTO, tx_ring, CTLFLAG_RDTUN,
&sfxge_tx_ring_entries, 0,
"Maximum number of descriptors in a transmit ring");
-
static void
sfxge_reset(void *arg, int npending);
@@ -377,6 +376,12 @@ sfxge_ifnet_init(struct ifnet *ifp, struct sfxge_softc *sc)
ifp->if_capabilities = SFXGE_CAP;
ifp->if_capenable = SFXGE_CAP_ENABLE;
+
+#ifdef SFXGE_LRO
+ ifp->if_capabilities |= IFCAP_LRO;
+ ifp->if_capenable |= IFCAP_LRO;
+#endif
+
ifp->if_hwassist = CSUM_TCP | CSUM_UDP | CSUM_IP | CSUM_TSO |
CSUM_TCP_IPV6 | CSUM_UDP_IPV6;