diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-06-26 07:48:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-27 06:12:32 +0200 |
commit | 149ddd83a92b02c658d6c61f3276eb6500d585e8 (patch) | |
tree | 971f008d720e7c57f28de77cecfd3ea0eb2164e3 /net/bridge/br_if.c | |
parent | vhost: use USER_DS in vhost_worker thread (diff) | |
download | linux-149ddd83a92b02c658d6c61f3276eb6500d585e8.tar.xz linux-149ddd83a92b02c658d6c61f3276eb6500d585e8.zip |
bridge: Assign rtnl_link_ops to bridge devices created via ioctl (v2)
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>
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r-- | net/bridge/br_if.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 0a942fbccc9a..e1144e1617be 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -240,6 +240,7 @@ int br_add_bridge(struct net *net, const char *name) return -ENOMEM; dev_net_set(dev, net); + dev->rtnl_link_ops = &br_link_ops; res = register_netdev(dev); if (res) |