]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: bridge: remove __br_vlan_filter_toggle
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 13 Feb 2021 20:43:15 +0000 (22:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 01:38:11 +0000 (17:38 -0800)
This function is identical with br_vlan_filter_toggle.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c
net/bridge/br_private.h
net/bridge/br_vlan.c

index 7b513c5d347fb4016a2511e7392f931f3711b5d7..a12bbbdacb9bcb516f6969b23e12f2c02eaa3980 100644 (file)
@@ -1212,7 +1212,7 @@ static int br_changelink(struct net_device *brdev, struct nlattr *tb[],
        if (data[IFLA_BR_VLAN_FILTERING]) {
                u8 vlan_filter = nla_get_u8(data[IFLA_BR_VLAN_FILTERING]);
 
-               err = __br_vlan_filter_toggle(br, vlan_filter);
+               err = br_vlan_filter_toggle(br, vlan_filter);
                if (err)
                        return err;
        }
index a1639d41188b882d1a4737615fa81763ad3196cf..0281de20212ed1a36f73d25235f756c0a3d20068 100644 (file)
@@ -1085,7 +1085,6 @@ int br_vlan_delete(struct net_bridge *br, u16 vid);
 void br_vlan_flush(struct net_bridge *br);
 struct net_bridge_vlan *br_vlan_find(struct net_bridge_vlan_group *vg, u16 vid);
 void br_recalculate_fwd_mask(struct net_bridge *br);
-int __br_vlan_filter_toggle(struct net_bridge *br, unsigned long val);
 int br_vlan_filter_toggle(struct net_bridge *br, unsigned long val);
 int __br_vlan_set_proto(struct net_bridge *br, __be16 proto);
 int br_vlan_set_proto(struct net_bridge *br, unsigned long val);
@@ -1261,8 +1260,8 @@ static inline u16 br_get_pvid(const struct net_bridge_vlan_group *vg)
        return 0;
 }
 
-static inline int __br_vlan_filter_toggle(struct net_bridge *br,
-                                         unsigned long val)
+static inline int br_vlan_filter_toggle(struct net_bridge *br,
+                                       unsigned long val)
 {
        return -EOPNOTSUPP;
 }
index bb29097385187b6f9d4993cd8b35c1e6e6faadd9..26e7e06b6a0d08193c85c5f2bb42dacab19c8779 100644 (file)
@@ -806,7 +806,7 @@ void br_recalculate_fwd_mask(struct net_bridge *br)
                                              ~(1u << br->group_addr[5]);
 }
 
-int __br_vlan_filter_toggle(struct net_bridge *br, unsigned long val)
+int br_vlan_filter_toggle(struct net_bridge *br, unsigned long val)
 {
        struct switchdev_attr attr = {
                .orig_dev = br->dev,
@@ -831,11 +831,6 @@ int __br_vlan_filter_toggle(struct net_bridge *br, unsigned long val)
        return 0;
 }
 
-int br_vlan_filter_toggle(struct net_bridge *br, unsigned long val)
-{
-       return __br_vlan_filter_toggle(br, val);
-}
-
 bool br_vlan_enabled(const struct net_device *dev)
 {
        struct net_bridge *br = netdev_priv(dev);