diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-10-01 08:32:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-01 18:39:44 -0400 |
commit | edc7d57327bd08bfd04f41531d49b176369db218 (patch) | |
tree | c1005cd5c5e9006c4eb2de39b3d14598f2206892 /net/core/rtnetlink.c | |
parent | de0a41484c47d783dd4d442914815076aa2caac2 (diff) |
netlink: add attributes to fdb interface
Later changes need to be able to refer to neighbour attributes
when doing fdb_add.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r-- | net/core/rtnetlink.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 92575370d9f0..76d4c2c3c89b 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -2090,7 +2090,8 @@ static int rtnl_fdb_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | |||
2090 | if ((!ndm->ndm_flags || ndm->ndm_flags & NTF_MASTER) && | 2090 | if ((!ndm->ndm_flags || ndm->ndm_flags & NTF_MASTER) && |
2091 | (dev->priv_flags & IFF_BRIDGE_PORT)) { | 2091 | (dev->priv_flags & IFF_BRIDGE_PORT)) { |
2092 | master = dev->master; | 2092 | master = dev->master; |
2093 | err = master->netdev_ops->ndo_fdb_add(ndm, dev, addr, | 2093 | err = master->netdev_ops->ndo_fdb_add(ndm, tb, |
2094 | dev, addr, | ||
2094 | nlh->nlmsg_flags); | 2095 | nlh->nlmsg_flags); |
2095 | if (err) | 2096 | if (err) |
2096 | goto out; | 2097 | goto out; |
@@ -2100,7 +2101,8 @@ static int rtnl_fdb_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | |||
2100 | 2101 | ||
2101 | /* Embedded bridge, macvlan, and any other device support */ | 2102 | /* Embedded bridge, macvlan, and any other device support */ |
2102 | if ((ndm->ndm_flags & NTF_SELF) && dev->netdev_ops->ndo_fdb_add) { | 2103 | if ((ndm->ndm_flags & NTF_SELF) && dev->netdev_ops->ndo_fdb_add) { |
2103 | err = dev->netdev_ops->ndo_fdb_add(ndm, dev, addr, | 2104 | err = dev->netdev_ops->ndo_fdb_add(ndm, tb, |
2105 | dev, addr, | ||
2104 | nlh->nlmsg_flags); | 2106 | nlh->nlmsg_flags); |
2105 | 2107 | ||
2106 | if (!err) { | 2108 | if (!err) { |