add missing IFLA_MASTER fillup
this makes all set_master functions work. Signed-off-by: Jiri Pirko <jpirko@redhat.com>
This commit is contained in:
parent
03f3a58733
commit
bd7000948d
1 changed files with 3 additions and 0 deletions
|
@ -1112,6 +1112,9 @@ static int build_link_msg(int cmd, struct ifinfomsg *hdr,
|
|||
if (link->ce_mask & LINK_ATTR_LINK)
|
||||
NLA_PUT_U32(msg, IFLA_LINK, link->l_link);
|
||||
|
||||
if (link->ce_mask & LINK_ATTR_MASTER)
|
||||
NLA_PUT_U32(msg, IFLA_MASTER, link->l_master);
|
||||
|
||||
if ((link->ce_mask & LINK_ATTR_LINKINFO) && link->l_info_ops) {
|
||||
struct nlattr *info;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue