Page MenuHomeFreeBSD

D44772.id136984.diff
No OneTemporary

D44772.id136984.diff

diff --git a/sys/dev/ixgbe/if_ixv.c b/sys/dev/ixgbe/if_ixv.c
--- a/sys/dev/ixgbe/if_ixv.c
+++ b/sys/dev/ixgbe/if_ixv.c
@@ -1373,11 +1373,13 @@
struct ixgbe_softc *sc = iflib_get_softc(ctx);
if_softc_ctx_t scctx;
struct ixgbe_hw *hw = &sc->hw;
+#ifdef DEV_NETMAP
if_t ifp = iflib_get_ifp(ctx);
+#endif
struct ix_rx_queue *que = sc->rx_queues;
u32 bufsz, psrtype;
- if (if_getmtu(ifp) > ETHERMTU)
+ if (sc->rx_mbuf_sz > 2048)
bufsz = 4096 >> IXGBE_SRRCTL_BSIZEPKT_SHIFT;
else
bufsz = 2048 >> IXGBE_SRRCTL_BSIZEPKT_SHIFT;

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 16, 4:55 PM (9 h, 48 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27663144
Default Alt Text
D44772.id136984.diff (578 B)

Event Timeline