bridge: Assign rtnl_link_ops to bridge devices created via ioctl (v2)
authorstephen hemminger <shemminger@vyatta.com>
Tue, 26 Jun 2012 05:48:45 +0000 (05:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 15:47:37 +0000 (08:47 -0700)
commit4acd9a65e16de99c4afe89e4ac8a16b501c92450
tree403b36acc479ada1d2edf20f5dab3a87db329276
parentd3a673fb54a4d7f6d8cb4f7e72dac5f91583e6f1
bridge: Assign rtnl_link_ops to bridge devices created via ioctl (v2)

[ Upstream commit 149ddd83a92b02c658d6c61f3276eb6500d585e8 ]

This ensures that bridges created with brctl(8) or ioctl(2) directly
also carry IFLA_LINKINFO when dumped over netlink. This also allows
to create a bridge with ioctl(2) and delete it with RTM_DELLINK.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bridge/br_if.c
net/bridge/br_netlink.c
net/bridge/br_private.h