[Bridge] [PATCH v9 net-next 02/12] bridge: Validate that vlan is permitted on ingress

Michał Mirosław mirqus at gmail.com
Sat Feb 2 01:04:02 UTC 2013


2013/2/1 Vlad Yasevich <vyasevic at redhat.com>:
> When a frame arrives on a port or transmitted by the bridge,
> if we have VLANs configured, validate that a given VLAN is allowed
> to enter the bridge.
[...]
> +static inline struct net_port_vlans *br_get_vlan_info(
> +                                               const struct net_bridge *br)
> +{
> +       return rcu_dereference(br->vlan_info);
> +}
> +
> +static inline struct net_port_vlans *nbp_get_vlan_info(
> +                                               const struct net_bridge_port *p)
> +{
> +       return rcu_dereference(p->vlan_info);
> +}

Those should go to patch #1.

Best Regards,
Michał Mirosław


More information about the Bridge mailing list