SVNews r324446

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-10-09 20:35:31 - r324446 by glebius (Gleb Smirnoff)

Complete list of files affected by revision r324446:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/share/man/man9/mbpool.9  
  History   Contents   Diff   MODIFY   /head/share/man/man9/mbuf.9  
  History   Contents   Diff   MODIFY   /head/sys/compat/ndis/kern_ndis.c  
  History   Contents   Diff   MODIFY   /head/sys/compat/ndis/ndis_var.h  
  History   Contents   Diff   MODIFY   /head/sys/dev/cas/if_cas.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/cas/if_casvar.h  
  History   Contents   Diff   MODIFY   /head/sys/dev/cxgbe/t4_sge.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/cxgbe/tom/t4_cpl_io.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/dpaa/if_dtsec_rm.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/if_ndis/if_ndis.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/iscsi_initiator/isc_soc.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/lge/if_lge.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/mwl/if_mwl.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/netmap/netmap_generic.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/wb/if_wb.c  
  History   Contents   Diff   MODIFY   /head/sys/kern/kern_mbuf.c  
  History   Contents   Diff   MODIFY   /head/sys/kern/subr_mbpool.c  
  History   Contents   Diff   MODIFY   /head/sys/sys/mbpool.h  
  History   Contents   Diff   MODIFY   /head/sys/sys/mbuf.h  

Commit message:

Shorten list of arguments to mbuf external storage freeing function.

All of these arguments are stored in m_ext, so there is no reason
to pass them in the argument list. Not all functions need the second
argument, some don't even need the first one. The second argument
lives in next cache line, so not dereferencing it is a performance
gain. This was discovered in sendfile(2), which will be covered by
next commits.

The second goal of this commit is to bring even more flexibility
to m_ext mbufs, allowing to create more fields in m_ext, opaque to
the generic mbuf code, and potentially set and dereferenced by
subsystems.

Reviewed by: gallatin, kbowling
Differential Revision: https://reviews.freebsd.org/D12615

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 7 ms, 19 files printed. Current time is 2017-12-16 14:53:20. All times are in UTC/GMT.