git: 3b7acf9a3b24 - stable/13 - if_bridge: Mask MEXTPG if some members don't support it
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Nov 2024 14:10:42 UTC
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=3b7acf9a3b2428f86291e48298ee9bae8f1276c7
commit 3b7acf9a3b2428f86291e48298ee9bae8f1276c7
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-10-28 13:52:07 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-11-11 14:02:21 +0000
if_bridge: Mask MEXTPG if some members don't support it
Similar to how the network stack needs to use mb_unmapped_to_ext() to
convert mbufs before passing them to an unsupported driver, if_bridge
needs to avoid passing M_EXTPG mbufs to interfaces that don't support
them. Thus, clear IFCAP_MEXTPG on the bridge if any member interfaces
don't handle unmapped mbufs.
PR: 278245
Reviewed by: jhb, gallatin
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D47294
(cherry picked from commit 2bbfbf80d3bb828ac782c2d990a1fba0eb51e45a)
---
sys/net/if_bridge.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index d94b1d59afbd..b392a9c69a7f 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -200,7 +200,7 @@ extern void nd6_setmtu(struct ifnet *);
* List of capabilities to possibly mask on the member interface.
*/
#define BRIDGE_IFCAPS_MASK (IFCAP_TOE|IFCAP_TSO|IFCAP_TXCSUM|\
- IFCAP_TXCSUM_IPV6)
+ IFCAP_TXCSUM_IPV6|IFCAP_MEXTPG)
/*
* List of capabilities to strip