From 45436c7a6700564b1e3aa9ca0e9d20e4ba8f585a Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 26 Jan 2024 16:02:48 -0500 Subject: [PATCH] freebsd_iflib: Remove workaround for multi-packet receive. Following the last commit, we can just let if_input process the whole chain at once. The logic here may not have been correct, and possibly caused memory leaks under high-traffic conditions. May help with #18585 and others. --- src/libs/compat/freebsd_iflib/iflib.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/libs/compat/freebsd_iflib/iflib.c b/src/libs/compat/freebsd_iflib/iflib.c index 8fd077e563..253bb04c90 100644 --- a/src/libs/compat/freebsd_iflib/iflib.c +++ b/src/libs/compat/freebsd_iflib/iflib.c @@ -3110,15 +3110,6 @@ iflib_rxeof(iflib_rxq_t rxq, qidx_t budget) DBG_COUNTER_INC(rx_if_input); continue; } -#else /* __HAIKU __*/ - if (mf != NULL) { - ifp->if_input(ifp, mf); - DBG_COUNTER_INC(rx_if_input); - mt = mf = NULL; - } - ifp->if_input(ifp, m); - DBG_COUNTER_INC(rx_if_input); - continue; #endif if (mf == NULL)