sfxge: added setting TSO-related parameters
Submitted by: Artem V. Andreev <Artem.Andreev at oktetlabs.ru> Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D4308
This commit is contained in:
parent
120584dca6
commit
8ce7856dca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291570
@ -538,6 +538,9 @@ sfxge_ifnet_init(struct ifnet *ifp, struct sfxge_softc *sc)
|
|||||||
|
|
||||||
ifp->if_capabilities = SFXGE_CAP;
|
ifp->if_capabilities = SFXGE_CAP;
|
||||||
ifp->if_capenable = SFXGE_CAP_ENABLE;
|
ifp->if_capenable = SFXGE_CAP_ENABLE;
|
||||||
|
ifp->if_hw_tsomax = SFXGE_TSO_MAX_SIZE;
|
||||||
|
ifp->if_hw_tsomaxsegcount = SFXGE_TX_MAPPING_MAX_SEG;
|
||||||
|
ifp->if_hw_tsomaxsegsize = PAGE_SIZE;
|
||||||
|
|
||||||
#ifdef SFXGE_LRO
|
#ifdef SFXGE_LRO
|
||||||
ifp->if_capabilities |= IFCAP_LRO;
|
ifp->if_capabilities |= IFCAP_LRO;
|
||||||
|
Loading…
Reference in New Issue
Block a user