Thread (7 messages) 7 messages, 5 authors, 2017-02-01

Re: [PATCH] rtnetlink: Handle IFLA_MASTER parameter when processing rtnl_newlink

From: Cong Wang <hidden>
Date: 2017-01-31 06:49:58

On Mon, Jan 30, 2017 at 3:23 PM, Theuns Verwoerd
[off-list ref] wrote:
quoted hunk ↗ jump to hunk
@@ -2653,6 +2653,11 @@ static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh)
                        if (err < 0)
                                goto out_unregister;
                }
+               if (tb[IFLA_MASTER]) {
+                       err = do_set_master(dev, nla_get_u32(tb[IFLA_MASTER]));
+                       if (err)
+                               goto out_unregister;
+               }
 out:
                if (link_net)
                        put_net(link_net);
Not sure if it is too late to call do_set_master() after
dev_change_net_namespace().
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help