aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-10-28 13:52:07 +0000
committerMark Johnston <markj@FreeBSD.org>2024-10-28 15:14:21 +0000
commit2bbfbf80d3bb828ac782c2d990a1fba0eb51e45a (patch)
treec4248b22a173728bf8fbb6dab11d3f58685a51d0
parent878ede1a0d0f10f851b2bc54be1e28f512bfc016 (diff)
downloadsrc-2bbfbf80d3bb.tar.gz
src-2bbfbf80d3bb.zip
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
-rw-r--r--sys/net/if_bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 723b92d3dcd5..299b6d80dcde 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -193,7 +193,7 @@
* 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