aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dsa/8021q.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/dsa/8021q.h')
-rw-r--r--include/linux/dsa/8021q.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/include/linux/dsa/8021q.h b/include/linux/dsa/8021q.h
index 3911e0586478..0aa803c451a3 100644
--- a/include/linux/dsa/8021q.h
+++ b/include/linux/dsa/8021q.h
@@ -20,9 +20,6 @@ int dsa_port_setup_8021q_tagging(struct dsa_switch *ds, int index,
20struct sk_buff *dsa_8021q_xmit(struct sk_buff *skb, struct net_device *netdev, 20struct sk_buff *dsa_8021q_xmit(struct sk_buff *skb, struct net_device *netdev,
21 u16 tpid, u16 tci); 21 u16 tpid, u16 tci);
22 22
23struct sk_buff *dsa_8021q_rcv(struct sk_buff *skb, struct net_device *netdev,
24 struct packet_type *pt, u16 *tpid, u16 *tci);
25
26u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port); 23u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port);
27 24
28u16 dsa_8021q_rx_vid(struct dsa_switch *ds, int port); 25u16 dsa_8021q_rx_vid(struct dsa_switch *ds, int port);
@@ -31,6 +28,8 @@ int dsa_8021q_rx_switch_id(u16 vid);
31 28
32int dsa_8021q_rx_source_port(u16 vid); 29int dsa_8021q_rx_source_port(u16 vid);
33 30
31struct sk_buff *dsa_8021q_remove_header(struct sk_buff *skb);
32
34#else 33#else
35 34
36int dsa_port_setup_8021q_tagging(struct dsa_switch *ds, int index, 35int dsa_port_setup_8021q_tagging(struct dsa_switch *ds, int index,
@@ -45,12 +44,6 @@ struct sk_buff *dsa_8021q_xmit(struct sk_buff *skb, struct net_device *netdev,
45 return NULL; 44 return NULL;
46} 45}
47 46
48struct sk_buff *dsa_8021q_rcv(struct sk_buff *skb, struct net_device *netdev,
49 struct packet_type *pt, u16 *tpid, u16 *tci)
50{
51 return NULL;
52}
53
54u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port) 47u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port)
55{ 48{
56 return 0; 49 return 0;
@@ -71,6 +64,11 @@ int dsa_8021q_rx_source_port(u16 vid)
71 return 0; 64 return 0;
72} 65}
73 66
67struct sk_buff *dsa_8021q_remove_header(struct sk_buff *skb)
68{
69 return NULL;
70}
71
74#endif /* IS_ENABLED(CONFIG_NET_DSA_TAG_8021Q) */ 72#endif /* IS_ENABLED(CONFIG_NET_DSA_TAG_8021Q) */
75 73
76#endif /* _NET_DSA_8021Q_H */ 74#endif /* _NET_DSA_8021Q_H */