net: rtnetlink: support for fdb get
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Sun, 16 Dec 2018 06:35:08 +0000 (22:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2018 22:42:34 +0000 (14:42 -0800)
commit5b2f94b27622d5b92d1cebf4bb5a627db4444607
tree98499d4afc787bbebcffd0b6c708d314e3ce63b1
parent5312b93b04208bb055a2ee1fd6c8617905d8b330
net: rtnetlink: support for fdb get

This patch adds support for fdb get similar to
route get. arguments can be any of the following (similar to fdb add/del/dump):
[bridge, mac, vlan] or
[bridge_port, mac, vlan, flags=[NTF_MASTER]] or
[dev, mac, [vni|vlan], flags=[NTF_SELF]]

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Reviewed-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/rtnetlink.c