Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 2025 17:06:11 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a95b1744f610 - main - iflib: Only define lro_enabled if either INET or INET6 is defined
Message-ID:  <202508151706.57FH6Bme097289@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=a95b1744f6108236977294318ae265642e4dcdae

commit a95b1744f6108236977294318ae265642e4dcdae
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-08-15 16:59:18 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2025-08-15 17:06:03 +0000

    iflib: Only define lro_enabled if either INET or INET6 is defined
    
    Fixes:          e69573bc2bee ("iflib: simplify lro & use tcp_lro_queue_mbuf()")
---
 sys/net/iflib.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index 6638c90882aa..2b43f6f19051 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -2910,7 +2910,9 @@ iflib_rxeof(iflib_rxq_t rxq, qidx_t budget)
 	struct if_rxd_info ri;
 	int err, budget_left, rx_bytes, rx_pkts;
 	iflib_fl_t fl;
+#if defined(INET6) || defined(INET)
 	int lro_enabled;
+#endif
 	uint8_t retval = 0;
 
 	/*
@@ -2936,7 +2938,9 @@ iflib_rxeof(iflib_rxq_t rxq, qidx_t budget)
 		return (retval);
 	}
 
+#if defined(INET6) || defined(INET)
 	lro_enabled = (if_getcapenable(ifp) & IFCAP_LRO);
+#endif
 
 	/* pfil needs the vnet to be set */
 	CURVNET_SET_QUIET(if_getvnet(ifp));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508151706.57FH6Bme097289>