aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2014-11-28 08:34:15 -0500
committerDavid S. Miller <davem@davemloft.net>2014-12-02 23:01:18 -0500
commitf6f6424ba773da6221ecaaa70973eb4dacfa03b2 (patch)
tree76b4c5cea45c1a569d6cbd2f896e07f6b45d523e /drivers/net/vxlan.c
parent93859b13fa7ecef9d4d8bab4a7acc9f212c8fce2 (diff)
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index d802a1ae4560..31ecb03368c6 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,
849/* Add static entry (via netlink) */ 849/* Add static entry (via netlink) */
850static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], 850static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
851 struct net_device *dev, 851 struct net_device *dev,
852 const unsigned char *addr, u16 flags) 852 const unsigned char *addr, u16 vid, u16 flags)
853{ 853{
854 struct vxlan_dev *vxlan = netdev_priv(dev); 854 struct vxlan_dev *vxlan = netdev_priv(dev);
855 /* struct net *net = dev_net(vxlan->dev); */ 855 /* struct net *net = dev_net(vxlan->dev); */
@@ -885,7 +885,7 @@ static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
885/* Delete entry (via netlink) */ 885/* Delete entry (via netlink) */
886static int vxlan_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], 886static int vxlan_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
887 struct net_device *dev, 887 struct net_device *dev,
888 const unsigned char *addr) 888 const unsigned char *addr, u16 vid)
889{ 889{
890 struct vxlan_dev *vxlan = netdev_priv(dev); 890 struct vxlan_dev *vxlan = netdev_priv(dev);
891 struct vxlan_fdb *f; 891 struct vxlan_fdb *f;