]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r281951,r281954:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 13 May 2015 10:43:49 +0000 (10:43 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 13 May 2015 10:43:49 +0000 (10:43 +0000)
commit1f7048469cc3535e2b8773f7cd5e45f9fb80b00c
tree396f1e69412b13f2b7ab9f6fa0d3a5dbc0c49e96
parentc5251db645cb336fc414311418d78e54ae8959bc
MFstable/10 r281951,r281954:

r281951:

Backport MHSIZE/MPKTHSIZE equivalents from head

These macros are equivalent to the ones on head, except they are only exposed
when _KERNEL is defined, i.e. to kernel code, whereas the code on head is exposed
to userland as well

This is for improved forwards compatibility with mbuf(9) macros in head@r277203+,
and is required for a clean MFC of r279393

This is a direct commit to stable/10

Differential Revision: https://reviews.freebsd.org/D2126
Reviewed by: glebius, rwatson
Sponsored by: EMC / Isilon Storage Division

r281954:

MFC r279393:

Pad RX copy alignment calculation to avoid illegal memory accesses

The optimization made in r239940 is valid for struct mbuf's current structure
and size in FreeBSD, but hardcodes assumptions about sizes of struct mbuf,
which are unfortunately broken if additional data is added to the beginning of
struct mbuf

X-MFC note (discussed with rwatson):

This change requires the MPKTHSIZE definition, which is only available after
head@r277203 and will not be MFCed as it breaks mbuf(9) KPI.

A direct commit to stable/10 and merges to other branches to add the necessary
definitions to work with the code as-is will be done to facilitate this MFC

PR: 194314
Approved/Reviewed by: erj, jfv
Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/9@282847 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/ixgbe/ixgbe.h
sys/sys/mbuf.h