Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.6-rc2 74 lines 1.4 kB view raw
1/* SPDX-License-Identifier: GPL-2.0 2 * Copyright (c) 2019, Vladimir Oltean <olteanv@gmail.com> 3 */ 4 5#ifndef _NET_DSA_8021Q_H 6#define _NET_DSA_8021Q_H 7 8#include <linux/types.h> 9 10struct dsa_switch; 11struct sk_buff; 12struct net_device; 13struct packet_type; 14 15#if IS_ENABLED(CONFIG_NET_DSA_TAG_8021Q) 16 17int dsa_port_setup_8021q_tagging(struct dsa_switch *ds, int index, 18 bool enabled); 19 20struct sk_buff *dsa_8021q_xmit(struct sk_buff *skb, struct net_device *netdev, 21 u16 tpid, u16 tci); 22 23u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port); 24 25u16 dsa_8021q_rx_vid(struct dsa_switch *ds, int port); 26 27int dsa_8021q_rx_switch_id(u16 vid); 28 29int dsa_8021q_rx_source_port(u16 vid); 30 31struct sk_buff *dsa_8021q_remove_header(struct sk_buff *skb); 32 33#else 34 35int dsa_port_setup_8021q_tagging(struct dsa_switch *ds, int index, 36 bool enabled) 37{ 38 return 0; 39} 40 41struct sk_buff *dsa_8021q_xmit(struct sk_buff *skb, struct net_device *netdev, 42 u16 tpid, u16 tci) 43{ 44 return NULL; 45} 46 47u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port) 48{ 49 return 0; 50} 51 52u16 dsa_8021q_rx_vid(struct dsa_switch *ds, int port) 53{ 54 return 0; 55} 56 57int dsa_8021q_rx_switch_id(u16 vid) 58{ 59 return 0; 60} 61 62int dsa_8021q_rx_source_port(u16 vid) 63{ 64 return 0; 65} 66 67struct sk_buff *dsa_8021q_remove_header(struct sk_buff *skb) 68{ 69 return NULL; 70} 71 72#endif /* IS_ENABLED(CONFIG_NET_DSA_TAG_8021Q) */ 73 74#endif /* _NET_DSA_8021Q_H */