diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2020-06-23 23:47:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-24 14:36:33 -0700 |
commit | 899426b3bdd947541ba4af8c767575889c8b842a (patch) | |
tree | 958d1a9702d3789b62405ee285a11094ace07414 /net/core | |
parent | 0592ff88347b5e13e31711a20a21c2ef2397f80b (diff) | |
download | linux-899426b3bdd947541ba4af8c767575889c8b842a.tar.gz linux-899426b3bdd947541ba4af8c767575889c8b842a.tar.bz2 linux-899426b3bdd947541ba4af8c767575889c8b842a.zip |
net: neighbor: add fdb extended attribute
Add an attribute to NDA which will contain all future fdb-specific
attributes in order to avoid polluting the NDA namespace with e.g.
bridge or vxlan specific attributes. The attribute is called
NDA_FDB_EXT_ATTRS and the structure would look like:
[NDA_FDB_EXT_ATTRS] = {
[NFEA_xxx]
}
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/neighbour.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index ef6b5a8f629c..8e39e28b0a8d 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -1783,6 +1783,7 @@ const struct nla_policy nda_policy[NDA_MAX+1] = { [NDA_MASTER] = { .type = NLA_U32 }, [NDA_PROTOCOL] = { .type = NLA_U8 }, [NDA_NH_ID] = { .type = NLA_U32 }, + [NDA_FDB_EXT_ATTRS] = { .type = NLA_NESTED }, }; static int neigh_delete(struct sk_buff *skb, struct nlmsghdr *nlh, |