diff options
author | Xin Long <lucien.xin@gmail.com> | 2022-02-09 03:19:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-09 13:33:39 +0000 |
commit | 37aa50c539bcbcc01767e515bd170787fcfc0f33 (patch) | |
tree | 71e002346f5bde8ea5c55d47ae22fd1aea0e145b /net/8021q/vlan.h | |
parent | feef318c855a361a1eccd880f33e88c460eb63b4 (diff) | |
download | linux-37aa50c539bcbcc01767e515bd170787fcfc0f33.tar.gz linux-37aa50c539bcbcc01767e515bd170787fcfc0f33.tar.bz2 linux-37aa50c539bcbcc01767e515bd170787fcfc0f33.zip |
vlan: introduce vlan_dev_free_egress_priority
This patch is to introduce vlan_dev_free_egress_priority() to
free egress priority for vlan dev, and keep vlan_dev_uninit()
static as .ndo_uninit. It makes the code more clear and safer
when adding new code in vlan_dev_uninit() in the future.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.h')
-rw-r--r-- | net/8021q/vlan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h index 1a705a4ef7fa..5eaf38875554 100644 --- a/net/8021q/vlan.h +++ b/net/8021q/vlan.h @@ -129,6 +129,7 @@ void vlan_dev_set_ingress_priority(const struct net_device *dev, u32 skb_prio, u16 vlan_prio); int vlan_dev_set_egress_priority(const struct net_device *dev, u32 skb_prio, u16 vlan_prio); +void vlan_dev_free_egress_priority(const struct net_device *dev); int vlan_dev_change_flags(const struct net_device *dev, u32 flag, u32 mask); void vlan_dev_get_realdev_name(const struct net_device *dev, char *result, size_t size); @@ -139,7 +140,6 @@ int vlan_check_real_dev(struct net_device *real_dev, void vlan_setup(struct net_device *dev); int register_vlan_dev(struct net_device *dev, struct netlink_ext_ack *extack); void unregister_vlan_dev(struct net_device *dev, struct list_head *head); -void vlan_dev_uninit(struct net_device *dev); bool vlan_dev_inherit_address(struct net_device *dev, struct net_device *real_dev); |