net: Allow DCBnl to use other namespaces besides init_net
authorJohn Fastabend <john.fastabend@gmail.com>
Sun, 9 Dec 2012 20:48:13 +0000 (20:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Dec 2012 19:09:01 +0000 (14:09 -0500)
commit7c77ab24e30bad7598b5cfda93be6f32ed439c2f
treef806a2e6f510d5e206e3bb85cb8732a310a4ea09
parent7b9e75802f1c50bfeae53c86c0bfbc5c45fd8719
net: Allow DCBnl to use other namespaces besides init_net

Allow DCB and net namespace to work together. This is useful if you
have containers that are bound to 'phys' interfaces that want to
also manage their DCB attributes.

The net namespace is taken from sock_net(skb->sk) of the netlink skb.

CC: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dcb/dcbnl.c