vxlan: __vxlan_fdb_delete(): Drop unused argument vid
This argument is necessary for vxlan_fdb_delete(), the API of which is prescribed by ndo_fdb_del, but __vxlan_fdb_delete() doesn't need it. Therefore drop it. Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d59da3fbfe
commit
5572c81560
|
@ -977,7 +977,7 @@ static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
|
||||||
static int __vxlan_fdb_delete(struct vxlan_dev *vxlan,
|
static int __vxlan_fdb_delete(struct vxlan_dev *vxlan,
|
||||||
const unsigned char *addr, union vxlan_addr ip,
|
const unsigned char *addr, union vxlan_addr ip,
|
||||||
__be16 port, __be32 src_vni, __be32 vni,
|
__be16 port, __be32 src_vni, __be32 vni,
|
||||||
u32 ifindex, u16 vid)
|
u32 ifindex)
|
||||||
{
|
{
|
||||||
struct vxlan_fdb *f;
|
struct vxlan_fdb *f;
|
||||||
struct vxlan_rdst *rd = NULL;
|
struct vxlan_rdst *rd = NULL;
|
||||||
|
@ -1024,8 +1024,7 @@ static int vxlan_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
spin_lock_bh(&vxlan->hash_lock);
|
spin_lock_bh(&vxlan->hash_lock);
|
||||||
err = __vxlan_fdb_delete(vxlan, addr, ip, port, src_vni, vni, ifindex,
|
err = __vxlan_fdb_delete(vxlan, addr, ip, port, src_vni, vni, ifindex);
|
||||||
vid);
|
|
||||||
spin_unlock_bh(&vxlan->hash_lock);
|
spin_unlock_bh(&vxlan->hash_lock);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
|
@ -3611,7 +3610,7 @@ static int vxlan_changelink(struct net_device *dev, struct nlattr *tb[],
|
||||||
vxlan->cfg.dst_port,
|
vxlan->cfg.dst_port,
|
||||||
old_dst.remote_vni,
|
old_dst.remote_vni,
|
||||||
old_dst.remote_vni,
|
old_dst.remote_vni,
|
||||||
old_dst.remote_ifindex, 0);
|
old_dst.remote_ifindex);
|
||||||
|
|
||||||
if (!vxlan_addr_any(&dst->remote_ip)) {
|
if (!vxlan_addr_any(&dst->remote_ip)) {
|
||||||
err = vxlan_fdb_create(vxlan, all_zeros_mac,
|
err = vxlan_fdb_create(vxlan, all_zeros_mac,
|
||||||
|
|
Loading…
Reference in New Issue