Date: Thu, 16 Oct 2014 23:41:02 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 194314] [ixgbe] driver makes some dangerous assumptions with struct mbuf sizing with IXGBE_RX_COPY_LEN Message-ID: <bug-194314-2472-6KDalyvBKD@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-194314-2472@https.bugs.freebsd.org/bugzilla/> References: <bug-194314-2472@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194314 --- Comment #9 from Eric Joyner <ricera10@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194314-2472-6KDalyvBKD>