cxgb(4): Report proper TSO limits.

MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2021-06-04 13:30:28 -07:00
parent bb877c0620
commit f13d72fd0b

View file

@ -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.