summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authornp <np@FreeBSD.org>2014-09-26 22:21:02 +0000
committernp <np@FreeBSD.org>2014-09-26 22:21:02 +0000
commit43fb052c698e39d971e6a05c76456b7f880444e4 (patch)
tree76e24c19c704a6226eb8dc730da57810ac8dfe65 /sys/dev
parent2a1bf3161bcde0d19f55d20f60591584023f628e (diff)
downloadFreeBSD-src-43fb052c698e39d971e6a05c76456b7f880444e4.zip
FreeBSD-src-43fb052c698e39d971e6a05c76456b7f880444e4.tar.gz
cxgbe(4): explicitly set various if_hw_tso* values.
MFC after: 3 days
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cxgbe/t4_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c
index 99bc344..b7d5355 100644
--- a/sys/dev/cxgbe/t4_main.c
+++ b/sys/dev/cxgbe/t4_main.c
@@ -1083,6 +1083,10 @@ cxgbe_attach(device_t dev)
ifp->if_hwassist = CSUM_TCP | CSUM_UDP | CSUM_IP | CSUM_TSO |
CSUM_UDP_IPV6 | CSUM_TCP_IPV6;
+ ifp->if_hw_tsomax = 65536 - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN);
+ ifp->if_hw_tsomaxsegcount = TX_SGL_SEGS;
+ ifp->if_hw_tsomaxsegsize = 65536;
+
/* Initialize ifmedia for this port */
ifmedia_init(&pi->media, IFM_IMASK, cxgbe_media_change,
cxgbe_media_status);
OpenPOWER on IntegriCloud