]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Continuation of multi page mbuf redesign from r359919.
authorglebius <glebius@FreeBSD.org>
Sat, 2 May 2020 22:39:26 +0000 (22:39 +0000)
committerglebius <glebius@FreeBSD.org>
Sat, 2 May 2020 22:39:26 +0000 (22:39 +0000)
commitaa4a5f7d2a269e0d1a23289212518fc033e1545d
tree66bf7ae0e46fdb756bf9b253b183f9f50e42fdba
parent149ace228d78f8186dfbbc6a5f927ef0d39a24d9
Continuation of multi page mbuf redesign from r359919.

The following series of patches addresses three things:

Now that array of pages is embedded into mbuf, we no longer need
separate structure to pass around, so struct mbuf_ext_pgs is an
artifact of the first implementation. And struct mbuf_ext_pgs_data
is a crutch to accomodate the main idea r359919 with minimal churn.

Also, M_EXT of type EXT_PGS are just a synonym of M_NOMAP.

The namespace for the newfeature is somewhat inconsistent and
sometimes has a lengthy prefixes. In these patches we will
gradually bring the namespace to "m_epg" prefix for all mbuf
fields and most functions.

Step 1 of 4:

 o Anonymize mbuf_ext_pgs_data, embed in m_ext
 o Embed mbuf_ext_pgs
 o Start documenting all this entanglement

Reviewed by: gallatin
Differential Revision: https://reviews.freebsd.org/D24598
12 files changed:
sys/dev/cxgbe/crypto/t4_kern_tls.c
sys/dev/cxgbe/t4_sge.c
sys/dev/cxgbe/tom/t4_cpl_io.c
sys/dev/cxgbe/tom/t4_tls.c
sys/kern/kern_mbuf.c
sys/kern/kern_sendfile.c
sys/kern/subr_bus_dma.c
sys/kern/subr_sglist.c
sys/kern/uipc_ktls.c
sys/kern/uipc_mbuf.c
sys/sys/mbuf.h
sys/sys/sglist.h