Module Name: src Committed By: msaitoh Date: Thu Aug 19 04:49:30 UTC 2021
Modified Files: src/sys/dev/pci/ixgbe: ix_txrx.c Log Message: Don't use fixed value. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.83 -r1.84 src/sys/dev/pci/ixgbe/ix_txrx.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/ixgbe/ix_txrx.c diff -u src/sys/dev/pci/ixgbe/ix_txrx.c:1.83 src/sys/dev/pci/ixgbe/ix_txrx.c:1.84 --- src/sys/dev/pci/ixgbe/ix_txrx.c:1.83 Thu Aug 19 04:47:12 2021 +++ src/sys/dev/pci/ixgbe/ix_txrx.c Thu Aug 19 04:49:29 2021 @@ -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 @@ ixgbe_refresh_mbufs(struct rx_ring *rxr, 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;