br_netlink.c (320424c7d44f54c18df9812fd7c45f6963524002) br_netlink.c (9632233e7de8da43711bb7cd3e054af32fedcc38)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Bridge netlink control interface
4 *
5 * Authors:
6 * Stephen Hemminger <shemminger@osdl.org>
7 */
8

--- 273 unchanged lines hidden (view full) ---

282 return -EMSGSIZE;
283 timerval = br_timer_value(&p->hold_timer);
284 if (nla_put_u64_64bit(skb, IFLA_BRPORT_HOLD_TIMER, timerval,
285 IFLA_BRPORT_PAD))
286 return -EMSGSIZE;
287
288#ifdef CONFIG_BRIDGE_IGMP_SNOOPING
289 if (nla_put_u8(skb, IFLA_BRPORT_MULTICAST_ROUTER,
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Bridge netlink control interface
4 *
5 * Authors:
6 * Stephen Hemminger <shemminger@osdl.org>
7 */
8

--- 273 unchanged lines hidden (view full) ---

282 return -EMSGSIZE;
283 timerval = br_timer_value(&p->hold_timer);
284 if (nla_put_u64_64bit(skb, IFLA_BRPORT_HOLD_TIMER, timerval,
285 IFLA_BRPORT_PAD))
286 return -EMSGSIZE;
287
288#ifdef CONFIG_BRIDGE_IGMP_SNOOPING
289 if (nla_put_u8(skb, IFLA_BRPORT_MULTICAST_ROUTER,
290 p->multicast_router) ||
290 p->multicast_ctx.multicast_router) ||
291 nla_put_u32(skb, IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT,
292 p->multicast_eht_hosts_limit) ||
293 nla_put_u32(skb, IFLA_BRPORT_MCAST_EHT_HOSTS_CNT,
294 p->multicast_eht_hosts_cnt))
295 return -EMSGSIZE;
296#endif
297
298 /* we might be called only with br->lock */

--- 1340 unchanged lines hidden (view full) ---

1639 case IFLA_STATS_LINK_XSTATS:
1640 br = netdev_priv(dev);
1641 vg = br_vlan_group(br);
1642 break;
1643 case IFLA_STATS_LINK_XSTATS_SLAVE:
1644 p = br_port_get_rtnl(dev);
1645 if (!p)
1646 return 0;
291 nla_put_u32(skb, IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT,
292 p->multicast_eht_hosts_limit) ||
293 nla_put_u32(skb, IFLA_BRPORT_MCAST_EHT_HOSTS_CNT,
294 p->multicast_eht_hosts_cnt))
295 return -EMSGSIZE;
296#endif
297
298 /* we might be called only with br->lock */

--- 1340 unchanged lines hidden (view full) ---

1639 case IFLA_STATS_LINK_XSTATS:
1640 br = netdev_priv(dev);
1641 vg = br_vlan_group(br);
1642 break;
1643 case IFLA_STATS_LINK_XSTATS_SLAVE:
1644 p = br_port_get_rtnl(dev);
1645 if (!p)
1646 return 0;
1647 br = p->br;
1648 vg = nbp_vlan_group(p);
1649 break;
1650 default:
1651 return 0;
1652 }
1653
1654 if (vg) {
1655 /* we need to count all, even placeholder entries */

--- 156 unchanged lines hidden ---
1647 vg = nbp_vlan_group(p);
1648 break;
1649 default:
1650 return 0;
1651 }
1652
1653 if (vg) {
1654 /* we need to count all, even placeholder entries */

--- 156 unchanged lines hidden ---