aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
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 /include/linux
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 'include/linux')
-rw-r--r--include/linux/netdevice.h8
-rw-r--r--include/linux/rtnetlink.h6
2 files changed, 9 insertions, 5 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 2cb772495f7a..589929cf4700 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -951,11 +951,11 @@ typedef u16 (*select_queue_fallback_t)(struct net_device *dev,
951 * 951 *
952 * int (*ndo_fdb_add)(struct ndmsg *ndm, struct nlattr *tb[], 952 * int (*ndo_fdb_add)(struct ndmsg *ndm, struct nlattr *tb[],
953 * struct net_device *dev, 953 * struct net_device *dev,
954 * const unsigned char *addr, u16 flags) 954 * const unsigned char *addr, u16 vid, u16 flags)
955 * Adds an FDB entry to dev for addr. 955 * Adds an FDB entry to dev for addr.
956 * int (*ndo_fdb_del)(struct ndmsg *ndm, struct nlattr *tb[], 956 * int (*ndo_fdb_del)(struct ndmsg *ndm, struct nlattr *tb[],
957 * struct net_device *dev, 957 * struct net_device *dev,
958 * const unsigned char *addr) 958 * const unsigned char *addr, u16 vid)
959 * Deletes the FDB entry from dev coresponding to addr. 959 * Deletes the FDB entry from dev coresponding to addr.
960 * int (*ndo_fdb_dump)(struct sk_buff *skb, struct netlink_callback *cb, 960 * int (*ndo_fdb_dump)(struct sk_buff *skb, struct netlink_callback *cb,
961 * struct net_device *dev, struct net_device *filter_dev, 961 * struct net_device *dev, struct net_device *filter_dev,
@@ -1128,11 +1128,13 @@ struct net_device_ops {
1128 struct nlattr *tb[], 1128 struct nlattr *tb[],
1129 struct net_device *dev, 1129 struct net_device *dev,
1130 const unsigned char *addr, 1130 const unsigned char *addr,
1131 u16 vid,
1131 u16 flags); 1132 u16 flags);
1132 int (*ndo_fdb_del)(struct ndmsg *ndm, 1133 int (*ndo_fdb_del)(struct ndmsg *ndm,
1133 struct nlattr *tb[], 1134 struct nlattr *tb[],
1134 struct net_device *dev, 1135 struct net_device *dev,
1135 const unsigned char *addr); 1136 const unsigned char *addr,
1137 u16 vid);
1136 int (*ndo_fdb_dump)(struct sk_buff *skb, 1138 int (*ndo_fdb_dump)(struct sk_buff *skb,
1137 struct netlink_callback *cb, 1139 struct netlink_callback *cb,
1138 struct net_device *dev, 1140 struct net_device *dev,
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 6cacbce1a06c..063f0f581fe0 100644
--- a/include/linux/rtnetlink.h
+++ b/include/linux/rtnetlink.h
@@ -94,11 +94,13 @@ extern int ndo_dflt_fdb_add(struct ndmsg *ndm,
94 struct nlattr *tb[], 94 struct nlattr *tb[],
95 struct net_device *dev, 95 struct net_device *dev,
96 const unsigned char *addr, 96 const unsigned char *addr,
97 u16 flags); 97 u16 vid,
98 u16 flags);
98extern int ndo_dflt_fdb_del(struct ndmsg *ndm, 99extern int ndo_dflt_fdb_del(struct ndmsg *ndm,
99 struct nlattr *tb[], 100 struct nlattr *tb[],
100 struct net_device *dev, 101 struct net_device *dev,
101 const unsigned char *addr); 102 const unsigned char *addr,
103 u16 vid);
102 104
103extern int ndo_dflt_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq, 105extern int ndo_dflt_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq,
104 struct net_device *dev, u16 mode); 106 struct net_device *dev, u16 mode);