diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2019-02-20 19:58:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-21 17:55:14 -0500 |
commit | 010c8f01aa7fe18ea97d302e1c7e9ca83bc27433 (patch) | |
tree | fe54edf01ad8eaf850d9f6697bc7e219f4415236 /include/net/switchdev.h | |
parent | cc0c207a5d18333fbfecc964a47ddb182fbcb720 (diff) |
net: Get rid of switchdev_port_attr_get()
With the bridge no longer calling switchdev_port_attr_get() to obtain
the supported bridge port flags from a driver but instead trying to set
the bridge port flags directly and relying on driver to reject
unsupported configurations, we can effectively get rid of
switchdev_port_attr_get() entirely since this was the only place where
it was called.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/switchdev.h')
-rw-r--r-- | include/net/switchdev.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h index 0f352019ef99..45310ddf2d7e 100644 --- a/include/net/switchdev.h +++ b/include/net/switchdev.h | |||
@@ -179,8 +179,6 @@ switchdev_notifier_info_to_extack(const struct switchdev_notifier_info *info) | |||
179 | #ifdef CONFIG_NET_SWITCHDEV | 179 | #ifdef CONFIG_NET_SWITCHDEV |
180 | 180 | ||
181 | void switchdev_deferred_process(void); | 181 | void switchdev_deferred_process(void); |
182 | int switchdev_port_attr_get(struct net_device *dev, | ||
183 | struct switchdev_attr *attr); | ||
184 | int switchdev_port_attr_set(struct net_device *dev, | 182 | int switchdev_port_attr_set(struct net_device *dev, |
185 | const struct switchdev_attr *attr); | 183 | const struct switchdev_attr *attr); |
186 | int switchdev_port_obj_add(struct net_device *dev, | 184 | int switchdev_port_obj_add(struct net_device *dev, |
@@ -225,12 +223,6 @@ static inline void switchdev_deferred_process(void) | |||
225 | { | 223 | { |
226 | } | 224 | } |
227 | 225 | ||
228 | static inline int switchdev_port_attr_get(struct net_device *dev, | ||
229 | struct switchdev_attr *attr) | ||
230 | { | ||
231 | return -EOPNOTSUPP; | ||
232 | } | ||
233 | |||
234 | static inline int switchdev_port_attr_set(struct net_device *dev, | 226 | static inline int switchdev_port_attr_set(struct net_device *dev, |
235 | const struct switchdev_attr *attr) | 227 | const struct switchdev_attr *attr) |
236 | { | 228 | { |