Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jun 2021 20:34:59 GMT
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f13d72fd0b74 - main - cxgb(4): Report proper TSO limits.
Message-ID:  <202106042034.154KYxuM018424@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by np:

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

commit f13d72fd0b743a1fd97dd31f4abf19e8814c420b
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2021-06-04 20:30:28 +0000
Commit:     Navdeep Parhar <np@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106042034.154KYxuM018424>