git: f13d72fd0b74 - main - cxgb(4): Report proper TSO limits.

Navdeep Parhar np at FreeBSD.org
Fri Jun 4 20:35:00 UTC 2021


The branch main has been updated by np:

URL: https://cgit.FreeBSD.org/src/commit/?id=f13d72fd0b743a1fd97dd31f4abf19e8814c420b

commit f13d72fd0b743a1fd97dd31f4abf19e8814c420b
Author:     Navdeep Parhar <np at FreeBSD.org>
AuthorDate: 2021-06-04 20:30:28 +0000
Commit:     Navdeep Parhar <np at FreeBSD.org>
CommitDate: 2021-06-04 20:30:28 +0000

    cxgb(4): Report proper TSO limits.
    
    MFC after:      1 week
    Sponsored by:   Chelsio Communications
---
 sys/dev/cxgb/cxgb_main.c | 3 +++
 1 file changed, 3 insertions(+)

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.


More information about the dev-commits-src-main mailing list