rocker: Remove getting PORT_BRIDGE_FLAGS
There is no code that attempts to get the SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS attribute, remove support for that. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1ecb195753
commit
610d2b601b
|
@ -109,8 +109,6 @@ struct rocker_world_ops {
|
|||
int (*port_attr_bridge_flags_set)(struct rocker_port *rocker_port,
|
||||
unsigned long brport_flags,
|
||||
struct switchdev_trans *trans);
|
||||
int (*port_attr_bridge_flags_get)(const struct rocker_port *rocker_port,
|
||||
unsigned long *p_brport_flags);
|
||||
int (*port_attr_bridge_flags_support_get)(const struct rocker_port *
|
||||
rocker_port,
|
||||
unsigned long *
|
||||
|
|
|
@ -1582,17 +1582,6 @@ rocker_world_port_attr_bridge_flags_set(struct rocker_port *rocker_port,
|
|||
trans);
|
||||
}
|
||||
|
||||
static int
|
||||
rocker_world_port_attr_bridge_flags_get(const struct rocker_port *rocker_port,
|
||||
unsigned long *p_brport_flags)
|
||||
{
|
||||
struct rocker_world_ops *wops = rocker_port->rocker->wops;
|
||||
|
||||
if (!wops->port_attr_bridge_flags_get)
|
||||
return -EOPNOTSUPP;
|
||||
return wops->port_attr_bridge_flags_get(rocker_port, p_brport_flags);
|
||||
}
|
||||
|
||||
static int
|
||||
rocker_world_port_attr_bridge_flags_support_get(const struct rocker_port *
|
||||
rocker_port,
|
||||
|
@ -2061,10 +2050,6 @@ static int rocker_port_attr_get(struct net_device *dev,
|
|||
int err = 0;
|
||||
|
||||
switch (attr->id) {
|
||||
case SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS:
|
||||
err = rocker_world_port_attr_bridge_flags_get(rocker_port,
|
||||
&attr->u.brport_flags);
|
||||
break;
|
||||
case SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT:
|
||||
err = rocker_world_port_attr_bridge_flags_support_get(rocker_port,
|
||||
&attr->u.brport_flags_support);
|
||||
|
|
|
@ -2511,16 +2511,6 @@ static int ofdpa_port_attr_bridge_flags_set(struct rocker_port *rocker_port,
|
|||
return err;
|
||||
}
|
||||
|
||||
static int
|
||||
ofdpa_port_attr_bridge_flags_get(const struct rocker_port *rocker_port,
|
||||
unsigned long *p_brport_flags)
|
||||
{
|
||||
const struct ofdpa_port *ofdpa_port = rocker_port->wpriv;
|
||||
|
||||
*p_brport_flags = ofdpa_port->brport_flags;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
ofdpa_port_attr_bridge_flags_support_get(const struct rocker_port *
|
||||
rocker_port,
|
||||
|
|
Loading…
Reference in New Issue