#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/rtnetlink.h>
#include <linux/slab.h>
#include <net/switchdev.h>
#include <net/dst_metadata.h>
#include "br_private.h"
#include "br_private_tunnel.h"
static inline int br_vlan_tunid_cmp(struct rhashtable_compare_arg *arg,
const void *ptr)
{ … }
static const struct rhashtable_params br_vlan_tunnel_rht_params = …;
static struct net_bridge_vlan *br_vlan_tunnel_lookup(struct rhashtable *tbl,
__be64 tunnel_id)
{ … }
static void vlan_tunnel_info_release(struct net_bridge_vlan *vlan)
{ … }
void vlan_tunnel_info_del(struct net_bridge_vlan_group *vg,
struct net_bridge_vlan *vlan)
{ … }
static int __vlan_tunnel_info_add(struct net_bridge_vlan_group *vg,
struct net_bridge_vlan *vlan, u32 tun_id)
{ … }
int nbp_vlan_tunnel_info_add(const struct net_bridge_port *port, u16 vid,
u32 tun_id)
{ … }
int nbp_vlan_tunnel_info_delete(const struct net_bridge_port *port, u16 vid)
{ … }
static void __vlan_tunnel_info_flush(struct net_bridge_vlan_group *vg)
{ … }
void nbp_vlan_tunnel_info_flush(struct net_bridge_port *port)
{ … }
int vlan_tunnel_init(struct net_bridge_vlan_group *vg)
{ … }
void vlan_tunnel_deinit(struct net_bridge_vlan_group *vg)
{ … }
void br_handle_ingress_vlan_tunnel(struct sk_buff *skb,
struct net_bridge_port *p,
struct net_bridge_vlan_group *vg)
{ … }
int br_handle_egress_vlan_tunnel(struct sk_buff *skb,
struct net_bridge_vlan *vlan)
{ … }