Author: arybchik
Date: Tue Dec  1 06:29:11 2015
New Revision: 291570
URL: https://svnweb.freebsd.org/changeset/base/291570

Log:
  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

Modified:
  head/sys/dev/sfxge/sfxge.c

Modified: head/sys/dev/sfxge/sfxge.c
==============================================================================
--- head/sys/dev/sfxge/sfxge.c  Tue Dec  1 06:23:15 2015        (r291569)
+++ head/sys/dev/sfxge/sfxge.c  Tue Dec  1 06:29:11 2015        (r291570)
@@ -538,6 +538,9 @@ sfxge_ifnet_init(struct ifnet *ifp, stru
 
        ifp->if_capabilities = SFXGE_CAP;
        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
        ifp->if_capabilities |= IFCAP_LRO;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to