~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/net/bridge/br_private_tunnel.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  *      Bridge per vlan tunnels
  4  *
  5  *      Authors:
  6  *      Roopa Prabhu            <roopa@cumulusnetworks.com>
  7  */
  8 
  9 #ifndef _BR_PRIVATE_TUNNEL_H
 10 #define _BR_PRIVATE_TUNNEL_H
 11 
 12 struct vtunnel_info {
 13         u32     tunid;
 14         u16     vid;
 15         u16     flags;
 16 };
 17 
 18 /* br_netlink_tunnel.c */
 19 int br_parse_vlan_tunnel_info(struct nlattr *attr,
 20                               struct vtunnel_info *tinfo);
 21 int br_process_vlan_tunnel_info(const struct net_bridge *br,
 22                                 const struct net_bridge_port *p,
 23                                 int cmd,
 24                                 struct vtunnel_info *tinfo_curr,
 25                                 struct vtunnel_info *tinfo_last,
 26                                 bool *changed);
 27 int br_get_vlan_tunnel_info_size(struct net_bridge_vlan_group *vg);
 28 int br_fill_vlan_tunnel_info(struct sk_buff *skb,
 29                              struct net_bridge_vlan_group *vg);
 30 bool vlan_tunid_inrange(const struct net_bridge_vlan *v_curr,
 31                         const struct net_bridge_vlan *v_last);
 32 int br_vlan_tunnel_info(const struct net_bridge_port *p, int cmd,
 33                         u16 vid, u32 tun_id, bool *changed);
 34 
 35 #ifdef CONFIG_BRIDGE_VLAN_FILTERING
 36 /* br_vlan_tunnel.c */
 37 int vlan_tunnel_init(struct net_bridge_vlan_group *vg);
 38 void vlan_tunnel_deinit(struct net_bridge_vlan_group *vg);
 39 int nbp_vlan_tunnel_info_delete(const struct net_bridge_port *port, u16 vid);
 40 int nbp_vlan_tunnel_info_add(const struct net_bridge_port *port, u16 vid,
 41                              u32 tun_id);
 42 void nbp_vlan_tunnel_info_flush(struct net_bridge_port *port);
 43 void vlan_tunnel_info_del(struct net_bridge_vlan_group *vg,
 44                           struct net_bridge_vlan *vlan);
 45 void br_handle_ingress_vlan_tunnel(struct sk_buff *skb,
 46                                    struct net_bridge_port *p,
 47                                    struct net_bridge_vlan_group *vg);
 48 int br_handle_egress_vlan_tunnel(struct sk_buff *skb,
 49                                  struct net_bridge_vlan *vlan);
 50 #else
 51 static inline int vlan_tunnel_init(struct net_bridge_vlan_group *vg)
 52 {
 53         return 0;
 54 }
 55 
 56 static inline int nbp_vlan_tunnel_info_delete(const struct net_bridge_port *port,
 57                                               u16 vid)
 58 {
 59         return 0;
 60 }
 61 
 62 static inline int nbp_vlan_tunnel_info_add(const struct net_bridge_port *port,
 63                                            u16 vid, u32 tun_id)
 64 {
 65         return 0;
 66 }
 67 
 68 static inline void nbp_vlan_tunnel_info_flush(struct net_bridge_port *port)
 69 {
 70 }
 71 
 72 static inline void vlan_tunnel_info_del(struct net_bridge_vlan_group *vg,
 73                                         struct net_bridge_vlan *vlan)
 74 {
 75 }
 76 
 77 static inline int br_handle_ingress_vlan_tunnel(struct sk_buff *skb,
 78                                                 struct net_bridge_port *p,
 79                                                 struct net_bridge_vlan_group *vg)
 80 {
 81         return 0;
 82 }
 83 #endif
 84 
 85 #endif
 86 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php