diff options
author | Jiri Pirko <jiri@resnulli.us> | 2014-11-28 14:34:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-02 20:01:18 -0800 |
commit | f6f6424ba773da6221ecaaa70973eb4dacfa03b2 (patch) | |
tree | 76b4c5cea45c1a569d6cbd2f896e07f6b45d523e /drivers/net/vxlan.c | |
parent | 93859b13fa7ecef9d4d8bab4a7acc9f212c8fce2 (diff) | |
download | op-kernel-dev-f6f6424ba773da6221ecaaa70973eb4dacfa03b2.zip op-kernel-dev-f6f6424ba773da6221ecaaa70973eb4dacfa03b2.tar.gz |
net: make vid as a parameter for ndo_fdb_add/ndo_fdb_del
Do the work of parsing NDA_VLAN directly in rtnetlink code, pass simple
u16 vid to drivers from there.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Andy Gospodarek <gospo@cumulusnetworks.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r-- | drivers/net/vxlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index d802a1a..31ecb03 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -849,7 +849,7 @@ static int vxlan_fdb_parse(struct nlattr *tb[], struct vxlan_dev *vxlan, /* Add static entry (via netlink) */ static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, - const unsigned char *addr, u16 flags) + const unsigned char *addr, u16 vid, u16 flags) { struct vxlan_dev *vxlan = netdev_priv(dev); /* struct net *net = dev_net(vxlan->dev); */ @@ -885,7 +885,7 @@ static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], /* Delete entry (via netlink) */ static int vxlan_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, - const unsigned char *addr) + const unsigned char *addr, u16 vid) { struct vxlan_dev *vxlan = netdev_priv(dev); struct vxlan_fdb *f; |