summaryrefslogtreecommitdiffstats
path: root/net/dsa/switch.c
diff options
context:
space:
mode:
authorVivien Didelot2017-11-30 17:23:58 +0100
committerDavid S. Miller2017-12-03 03:18:56 +0100
commit3709aadc8375a1b0c42da5b12e38eddf8133dd4e (patch)
tree99012d5f5ec8279d23dee2c9475ed3e8a1853985 /net/dsa/switch.c
parentnet: dsa: remove trans argument from vlan ops (diff)
downloadkernel-qcow2-linux-3709aadc8375a1b0c42da5b12e38eddf8133dd4e.tar.gz
kernel-qcow2-linux-3709aadc8375a1b0c42da5b12e38eddf8133dd4e.tar.xz
kernel-qcow2-linux-3709aadc8375a1b0c42da5b12e38eddf8133dd4e.zip
net: dsa: remove trans argument from mdb ops
The DSA switch MDB ops pass the switchdev_trans structure down to the drivers, but no one is using them and they aren't supposed to anyway. Remove the trans argument from MDB prepare and add operations. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/switch.c')
-rw-r--r--net/dsa/switch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/switch.c b/net/dsa/switch.c
index 205f074fa524..5ee04e9b5796 100644
--- a/net/dsa/switch.c
+++ b/net/dsa/switch.c
@@ -129,7 +129,7 @@ static int dsa_switch_mdb_add(struct dsa_switch *ds,
return -EOPNOTSUPP;
for_each_set_bit(port, group, ds->num_ports) {
- err = ds->ops->port_mdb_prepare(ds, port, mdb, trans);
+ err = ds->ops->port_mdb_prepare(ds, port, mdb);
if (err)
return err;
}
@@ -138,7 +138,7 @@ static int dsa_switch_mdb_add(struct dsa_switch *ds,
}
for_each_set_bit(port, group, ds->num_ports)
- ds->ops->port_mdb_add(ds, port, mdb, trans);
+ ds->ops->port_mdb_add(ds, port, mdb);
return 0;
}