summaryrefslogtreecommitdiffstats
path: root/net/dsa/tag_8021q.h
blob: b75cbaa028ef2f3c65e67a8c4488697c2ee2d7fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef __DSA_TAG_8021Q_H
#define __DSA_TAG_8021Q_H

#include <net/dsa.h>

#include "switch.h"

struct sk_buff;
struct net_device;

struct sk_buff *dsa_8021q_xmit(struct sk_buff *skb, struct net_device *netdev,
			       u16 tpid, u16 tci);

void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id,
		   int *vbid);

struct net_device *dsa_tag_8021q_find_port_by_vbid(struct net_device *master,
						   int vbid);

int dsa_switch_tag_8021q_vlan_add(struct dsa_switch *ds,
				  struct dsa_notifier_tag_8021q_vlan_info *info);
int dsa_switch_tag_8021q_vlan_del(struct dsa_switch *ds,
				  struct dsa_notifier_tag_8021q_vlan_info *info);

#endif