Revert "net: dsa: Add more convenient functions for installing port VLANs"
This reverts commit 314f76d7a6
.
Citing that commit message, the call graph was:
dsa_slave_vlan_rx_add_vid dsa_port_setup_8021q_tagging
| |
| |
| +-------------+
| |
v v
dsa_port_vid_add dsa_slave_port_obj_add
| |
+-------+ +-------+
| |
v v
dsa_port_vlan_add
Now that tag_8021q has its own ops structure, it no longer relies on
dsa_port_vid_add, and therefore on the dsa_switch_ops to install its
VLANs.
So dsa_port_vid_add now only has one single caller. So we can simplify
the call graph to what it was before, aka:
dsa_slave_vlan_rx_add_vid dsa_slave_port_obj_add
| |
+-------+ +-------+
| |
v v
dsa_port_vlan_add
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5899ee367a
commit
88236591ec
@@ -433,39 +433,6 @@ int dsa_port_vlan_del(struct dsa_port *dp,
|
||||
return dsa_port_notify(dp, DSA_NOTIFIER_VLAN_DEL, &info);
|
||||
}
|
||||
|
||||
int dsa_port_vid_add(struct dsa_port *dp, u16 vid, u16 flags)
|
||||
{
|
||||
struct switchdev_obj_port_vlan vlan = {
|
||||
.obj.id = SWITCHDEV_OBJ_ID_PORT_VLAN,
|
||||
.flags = flags,
|
||||
.vid_begin = vid,
|
||||
.vid_end = vid,
|
||||
};
|
||||
struct switchdev_trans trans;
|
||||
int err;
|
||||
|
||||
trans.ph_prepare = true;
|
||||
err = dsa_port_vlan_add(dp, &vlan, &trans);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
trans.ph_prepare = false;
|
||||
return dsa_port_vlan_add(dp, &vlan, &trans);
|
||||
}
|
||||
EXPORT_SYMBOL(dsa_port_vid_add);
|
||||
|
||||
int dsa_port_vid_del(struct dsa_port *dp, u16 vid)
|
||||
{
|
||||
struct switchdev_obj_port_vlan vlan = {
|
||||
.obj.id = SWITCHDEV_OBJ_ID_PORT_VLAN,
|
||||
.vid_begin = vid,
|
||||
.vid_end = vid,
|
||||
};
|
||||
|
||||
return dsa_port_vlan_del(dp, &vlan);
|
||||
}
|
||||
EXPORT_SYMBOL(dsa_port_vid_del);
|
||||
|
||||
static struct phy_device *dsa_port_get_phy_device(struct dsa_port *dp)
|
||||
{
|
||||
struct device_node *phy_dn;
|
||||
|
Reference in New Issue
Block a user