]> git.baikalelectronics.ru Git - kernel.git/commit
net: create generic bridge ops
authorJohn Fastabend <john.r.fastabend@intel.com>
Wed, 24 Oct 2012 08:12:57 +0000 (08:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Oct 2012 17:18:28 +0000 (13:18 -0400)
commit06c4884954d8669e2683c0f8684f7efba4bd011a
treeaff4a209c158a6bee5d974647ec8726f2b9a81c0
parent56423fe3f782e008f79d36362e642d927b36ade2
net: create generic bridge ops

The PF_BRIDGE:RTM_{GET|SET}LINK nlmsg family and type are
currently embedded in the ./net/bridge module. This prohibits
them from being used by other bridging devices. One example
of this being hardware that has embedded bridging components.

In order to use these nlmsg types more generically this patch
adds two net_device_ops hooks. One to set link bridge attributes
and another to dump the current bride attributes.

ndo_bridge_setlink()
ndo_bridge_getlink()

CC: Lennert Buytenhek <buytenh@wantstofly.org>
CC: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/bridge/br_device.c
net/bridge/br_netlink.c
net/bridge/br_private.h
net/core/rtnetlink.c