rtnetlink.c (1f782fee18b39b9ad438ebbd82c2915a16c879ee) | rtnetlink.c (253683bbfb6bc5864417c8c35cb6ef13b5e259e6) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Routing netlink socket interface: protocol independent part. 7 * 8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 1185 unchanged lines hidden (view full) --- 1194 dev->link_mode = nla_get_u8(tb[IFLA_LINKMODE]); 1195 write_unlock_bh(&dev_base_lock); 1196 } 1197 1198 if (tb[IFLA_VFINFO_LIST]) { 1199 struct nlattr *attr; 1200 int rem; 1201 nla_for_each_nested(attr, tb[IFLA_VFINFO_LIST], rem) { | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Routing netlink socket interface: protocol independent part. 7 * 8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 1185 unchanged lines hidden (view full) --- 1194 dev->link_mode = nla_get_u8(tb[IFLA_LINKMODE]); 1195 write_unlock_bh(&dev_base_lock); 1196 } 1197 1198 if (tb[IFLA_VFINFO_LIST]) { 1199 struct nlattr *attr; 1200 int rem; 1201 nla_for_each_nested(attr, tb[IFLA_VFINFO_LIST], rem) { |
1202 if (nla_type(attr) != IFLA_VF_INFO) | 1202 if (nla_type(attr) != IFLA_VF_INFO) { 1203 err = -EINVAL; |
1203 goto errout; | 1204 goto errout; |
1205 } |
|
1204 err = do_setvfinfo(dev, attr); 1205 if (err < 0) 1206 goto errout; 1207 modified = 1; 1208 } 1209 } 1210 err = 0; 1211 --- 605 unchanged lines hidden --- | 1206 err = do_setvfinfo(dev, attr); 1207 if (err < 0) 1208 goto errout; 1209 modified = 1; 1210 } 1211 } 1212 err = 0; 1213 --- 605 unchanged lines hidden --- |