aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2019-02-20 19:58:26 -0500
committerDavid S. Miller <davem@davemloft.net>2019-02-21 17:55:14 -0500
commit010c8f01aa7fe18ea97d302e1c7e9ca83bc27433 (patch)
treefe54edf01ad8eaf850d9f6697bc7e219f4415236 /net/dsa
parentcc0c207a5d18333fbfecc964a47ddb182fbcb720 (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 'net/dsa')
-rw-r--r--net/dsa/slave.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index db0a2651070f..a78b2bba0332 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -385,12 +385,6 @@ static int dsa_slave_get_port_parent_id(struct net_device *dev,
385 return 0; 385 return 0;
386} 386}
387 387
388static int dsa_slave_port_attr_get(struct net_device *dev,
389 struct switchdev_attr *attr)
390{
391 return -EOPNOTSUPP;
392}
393
394static inline netdev_tx_t dsa_slave_netpoll_send_skb(struct net_device *dev, 388static inline netdev_tx_t dsa_slave_netpoll_send_skb(struct net_device *dev,
395 struct sk_buff *skb) 389 struct sk_buff *skb)
396{ 390{
@@ -1057,7 +1051,6 @@ static const struct net_device_ops dsa_slave_netdev_ops = {
1057}; 1051};
1058 1052
1059static const struct switchdev_ops dsa_slave_switchdev_ops = { 1053static const struct switchdev_ops dsa_slave_switchdev_ops = {
1060 .switchdev_port_attr_get = dsa_slave_port_attr_get,
1061 .switchdev_port_attr_set = dsa_slave_port_attr_set, 1054 .switchdev_port_attr_set = dsa_slave_port_attr_set,
1062}; 1055};
1063 1056