Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Add forgotten commit for previous. Change ...



details:   https://anonhg.NetBSD.org/src/rev/dcd35c310169
branches:  trunk
changeset: 1023031:dcd35c310169
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Aug 19 22:17:56 2021 +0000

description:
Add forgotten commit for previous. Change IXGBE_RX_COPY_LEN_MAX.

diffstat:

 sys/dev/pci/ixgbe/ixgbe.h |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (21 lines):

diff -r 4410f29f2bb0 -r dcd35c310169 sys/dev/pci/ixgbe/ixgbe.h
--- a/sys/dev/pci/ixgbe/ixgbe.h Thu Aug 19 21:21:04 2021 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.h Thu Aug 19 22:17:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.h,v 1.76 2021/07/07 08:58:19 msaitoh Exp $ */
+/* $NetBSD: ixgbe.h,v 1.77 2021/08/19 22:17:56 msaitoh Exp $ */
 
 /******************************************************************************
   SPDX-License-Identifier: BSD-3-Clause
@@ -183,10 +183,7 @@
  * modern Intel CPUs, results in 40 bytes wasted and a significant drop
  * in observed efficiency of the optimization, 97.9% -> 81.8%.
  */
-#define        MPKTHSIZE               (offsetof(struct _mbuf_dummy, m_pktdat))
-#define IXGBE_RX_COPY_HDR_PADDED  ((((MPKTHSIZE - 1) / 32) + 1) * 32)
-#define IXGBE_RX_COPY_LEN_MAX     (MSIZE - IXGBE_RX_COPY_HDR_PADDED)
-#define IXGBE_RX_COPY_ALIGN       (IXGBE_RX_COPY_HDR_PADDED - MPKTHSIZE)
+#define IXGBE_RX_COPY_LEN_MAX     (MHLEN - ETHER_ALIGN)
 
 /* Keep older OS drivers building... */
 #if !defined(SYSCTL_ADD_UQUAD)



Home | Main Index | Thread Index | Old Index