diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2013-02-13 07:00:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-13 19:42:15 -0500 |
commit | 552406c488ec2cf1aaf8b5bd24d1750c9fd6d8cc (patch) | |
tree | a107b251cc39ce383b1fad2dff97f0c088b3c172 /net/bridge/br_private.h | |
parent | 7885198861fc9a3dfdc6bb90dc0ba12689d6cd57 (diff) |
bridge: Add the ability to configure pvid
A user may designate a certain vlan as PVID. This means that
any ingress frame that does not contain a vlan tag is assigned to
this vlan and any forwarding decisions are made with this vlan in mind.
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index ea8e7efd9137..1ae6395a0369 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -562,11 +562,11 @@ extern bool br_allowed_egress(struct net_bridge *br, | |||
562 | extern struct sk_buff *br_handle_vlan(struct net_bridge *br, | 562 | extern struct sk_buff *br_handle_vlan(struct net_bridge *br, |
563 | const struct net_port_vlans *v, | 563 | const struct net_port_vlans *v, |
564 | struct sk_buff *skb); | 564 | struct sk_buff *skb); |
565 | extern int br_vlan_add(struct net_bridge *br, u16 vid); | 565 | extern int br_vlan_add(struct net_bridge *br, u16 vid, u16 flags); |
566 | extern int br_vlan_delete(struct net_bridge *br, u16 vid); | 566 | extern int br_vlan_delete(struct net_bridge *br, u16 vid); |
567 | extern void br_vlan_flush(struct net_bridge *br); | 567 | extern void br_vlan_flush(struct net_bridge *br); |
568 | extern int br_vlan_filter_toggle(struct net_bridge *br, unsigned long val); | 568 | extern int br_vlan_filter_toggle(struct net_bridge *br, unsigned long val); |
569 | extern int nbp_vlan_add(struct net_bridge_port *port, u16 vid); | 569 | extern int nbp_vlan_add(struct net_bridge_port *port, u16 vid, u16 flags); |
570 | extern int nbp_vlan_delete(struct net_bridge_port *port, u16 vid); | 570 | extern int nbp_vlan_delete(struct net_bridge_port *port, u16 vid); |
571 | extern void nbp_vlan_flush(struct net_bridge_port *port); | 571 | extern void nbp_vlan_flush(struct net_bridge_port *port); |
572 | 572 | ||
@@ -633,7 +633,7 @@ static inline struct sk_buff *br_handle_vlan(struct net_bridge *br, | |||
633 | return skb; | 633 | return skb; |
634 | } | 634 | } |
635 | 635 | ||
636 | static inline int br_vlan_add(struct net_bridge *br, u16 vid) | 636 | static inline int br_vlan_add(struct net_bridge *br, u16 vid, u16 flags) |
637 | { | 637 | { |
638 | return -EOPNOTSUPP; | 638 | return -EOPNOTSUPP; |
639 | } | 639 | } |
@@ -647,7 +647,7 @@ static inline void br_vlan_flush(struct net_bridge *br) | |||
647 | { | 647 | { |
648 | } | 648 | } |
649 | 649 | ||
650 | static inline int nbp_vlan_add(struct net_bridge_port *port, u16 vid) | 650 | static inline int nbp_vlan_add(struct net_bridge_port *port, u16 vid, u16 flags) |
651 | { | 651 | { |
652 | return -EOPNOTSUPP; | 652 | return -EOPNOTSUPP; |
653 | } | 653 | } |