[Bug 194314] [ixgbe] driver makes some dangerous assumptions with struct mbuf sizing with IXGBE_RX_COPY_LEN

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Oct 16 23:41:02 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194314

--- Comment #9 from Eric Joyner <ricera10 at gmail.com> ---
You could try replacing the two lines in ixgbe.h with these:

#define IXGBE_RX_COPY_HDR       (sizeof(struct m_hdr) + sizeof(struct pkthdr))
#define IXGBE_RX_COPY_HDR_PADDED ((((IXGBE_RX_COPY_HDR - 1) / 32) + 1) * 32)
#define IXGBE_RX_COPY_LEN       (MSIZE - IXGBE_RX_COPY_HDR_PADDED)
#define IXGBE_RX_COPY_ALIGN     (IXGBE_RX_COPY_HDR_PADDED - IXGBE_RX_COPY_HDR)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list