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 Don't use fixed value. No functional change.



details:   https://anonhg.NetBSD.org/src/rev/4928784635d4
branches:  trunk
changeset: 985313:4928784635d4
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Aug 19 04:49:29 2021 +0000

description:
Don't use fixed value. No functional change.

diffstat:

 sys/dev/pci/ixgbe/ix_txrx.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 63cfbd457943 -r 4928784635d4 sys/dev/pci/ixgbe/ix_txrx.c
--- a/sys/dev/pci/ixgbe/ix_txrx.c       Thu Aug 19 04:47:12 2021 +0000
+++ b/sys/dev/pci/ixgbe/ix_txrx.c       Thu Aug 19 04:49:29 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ix_txrx.c,v 1.83 2021/08/19 04:47:12 msaitoh Exp $ */
+/* $NetBSD: ix_txrx.c,v 1.84 2021/08/19 04:49:29 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ix_txrx.c,v 1.83 2021/08/19 04:47:12 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ix_txrx.c,v 1.84 2021/08/19 04:49:29 msaitoh Exp $");
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
@@ -1353,7 +1353,8 @@
                                rxr->no_jmbuf.ev_count++;
                                goto update;
                        }
-                       if (adapter->max_frame_size <= (MCLBYTES - ETHER_ALIGN))
+                       if (adapter->max_frame_size
+                           <= (rxr->mbuf_sz - ETHER_ALIGN))
                                m_adj(mp, ETHER_ALIGN);
                } else
                        mp = rxbuf->buf;



Home | Main Index | Thread Index | Old Index