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>
This commit is contained in:

committed by
David S. Miller

parent
cc0c207a5d
commit
010c8f01aa
@@ -2066,12 +2066,6 @@ static const struct net_device_ops rocker_port_netdev_ops = {
|
||||
* swdev interface
|
||||
********************/
|
||||
|
||||
static int rocker_port_attr_get(struct net_device *dev,
|
||||
struct switchdev_attr *attr)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static int rocker_port_attr_set(struct net_device *dev,
|
||||
const struct switchdev_attr *attr,
|
||||
struct switchdev_trans *trans)
|
||||
@@ -2148,7 +2142,6 @@ static int rocker_port_obj_del(struct net_device *dev,
|
||||
}
|
||||
|
||||
static const struct switchdev_ops rocker_port_switchdev_ops = {
|
||||
.switchdev_port_attr_get = rocker_port_attr_get,
|
||||
.switchdev_port_attr_set = rocker_port_attr_set,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user