aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2021-06-04 20:30:28 +0000
committerNavdeep Parhar <np@FreeBSD.org>2021-10-20 17:29:45 +0000
commitdf667b59d76fefc9fafa3a02ed162c58e6aa5199 (patch)
tree59b65e8ddb3a94568aa1dfac75d1cc3ed07779b9
parent1b3f407f7d437c272d0cb2d84260b5622733a110 (diff)
downloadsrc-df667b59d76fefc9fafa3a02ed162c58e6aa5199.tar.gz
src-df667b59d76fefc9fafa3a02ed162c58e6aa5199.zip
cxgb(4): Report proper TSO limits.
Sponsored by: Chelsio Communications (cherry picked from commit f13d72fd0b743a1fd97dd31f4abf19e8814c420b)
-rw-r--r--sys/dev/cxgb/cxgb_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/cxgb/cxgb_main.c b/sys/dev/cxgb/cxgb_main.c
index ab835b0c1853..5c0bdd569fab 100644
--- a/sys/dev/cxgb/cxgb_main.c
+++ b/sys/dev/cxgb/cxgb_main.c
@@ -1042,6 +1042,9 @@ cxgb_port_attach(device_t dev)
ifp->if_capenable = CXGB_CAP_ENABLE;
ifp->if_hwassist = CSUM_TCP | CSUM_UDP | CSUM_IP | CSUM_TSO |
CSUM_UDP_IPV6 | CSUM_TCP_IPV6;
+ ifp->if_hw_tsomax = IP_MAXPACKET;
+ ifp->if_hw_tsomaxsegcount = 36;
+ ifp->if_hw_tsomaxsegsize = 65536;
/*
* Disable TSO on 4-port - it isn't supported by the firmware.