* [PATCH net-next] net: bridge: teach ndo_dflt_bridge_getlink() more brport flags
@ 2020-02-17 13:45 Julian Wiedmann
2020-02-17 22:37 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Julian Wiedmann @ 2020-02-17 13:45 UTC (permalink / raw)
To: David Miller; +Cc: netdev, Julian Wiedmann, Roopa Prabhu, Nikolay Aleksandrov
This enables ndo_dflt_bridge_getlink() to report a bridge port's
offload settings for multicast and broadcast flooding.
CC: Roopa Prabhu <roopa@cumulusnetworks.com>
CC: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
---
net/core/rtnetlink.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 09c44bf2e1d2..9b4f8a254a15 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -4555,7 +4555,11 @@ int ndo_dflt_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq,
brport_nla_put_flag(skb, flags, mask,
IFLA_BRPORT_UNICAST_FLOOD, BR_FLOOD) ||
brport_nla_put_flag(skb, flags, mask,
- IFLA_BRPORT_PROXYARP, BR_PROXYARP)) {
+ IFLA_BRPORT_PROXYARP, BR_PROXYARP) ||
+ brport_nla_put_flag(skb, flags, mask,
+ IFLA_BRPORT_MCAST_FLOOD, BR_MCAST_FLOOD) ||
+ brport_nla_put_flag(skb, flags, mask,
+ IFLA_BRPORT_BCAST_FLOOD, BR_BCAST_FLOOD)) {
nla_nest_cancel(skb, protinfo);
goto nla_put_failure;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: bridge: teach ndo_dflt_bridge_getlink() more brport flags
2020-02-17 13:45 [PATCH net-next] net: bridge: teach ndo_dflt_bridge_getlink() more brport flags Julian Wiedmann
@ 2020-02-17 22:37 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-02-17 22:37 UTC (permalink / raw)
To: jwi; +Cc: netdev, roopa, nikolay
From: Julian Wiedmann <jwi@linux.ibm.com>
Date: Mon, 17 Feb 2020 14:45:01 +0100
> This enables ndo_dflt_bridge_getlink() to report a bridge port's
> offload settings for multicast and broadcast flooding.
>
> CC: Roopa Prabhu <roopa@cumulusnetworks.com>
> CC: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-17 22:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-17 13:45 [PATCH net-next] net: bridge: teach ndo_dflt_bridge_getlink() more brport flags Julian Wiedmann
2020-02-17 22:37 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).