mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
net: dsa: tag_8021q: make dsa_8021q_{rx,tx}_vid take dp as argument
Pass a single argument to dsa_8021q_rx_vid and dsa_8021q_tx_vid that contains the necessary information from the two arguments that are currently provided: the switch and the port number. Also rename those functions so that they have a dsa_port_* prefix, since they operate on a struct dsa_port *. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5068887a4f
commit
992e5cc7be
@@ -9,6 +9,7 @@
|
||||
#include <linux/types.h>
|
||||
|
||||
struct dsa_switch;
|
||||
struct dsa_port;
|
||||
struct sk_buff;
|
||||
struct net_device;
|
||||
|
||||
@@ -45,9 +46,9 @@ void dsa_tag_8021q_bridge_tx_fwd_unoffload(struct dsa_switch *ds, int port,
|
||||
|
||||
u16 dsa_8021q_bridge_tx_fwd_offload_vid(int bridge_num);
|
||||
|
||||
u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port);
|
||||
u16 dsa_tag_8021q_tx_vid(const struct dsa_port *dp);
|
||||
|
||||
u16 dsa_8021q_rx_vid(struct dsa_switch *ds, int port);
|
||||
u16 dsa_tag_8021q_rx_vid(const struct dsa_port *dp);
|
||||
|
||||
int dsa_8021q_rx_switch_id(u16 vid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user