|
@@ -1124,6 +1124,8 @@ static noinline_for_stack int rtnl_fill_vfinfo(struct sk_buff *skb,
|
|
|
struct ifla_vf_mac vf_mac;
|
|
|
struct ifla_vf_info ivi;
|
|
|
|
|
|
+ memset(&ivi, 0, sizeof(ivi));
|
|
|
+
|
|
|
/* Not all SR-IOV capable drivers support the
|
|
|
* spoofcheck and "RSS query enable" query. Preset to
|
|
|
* -1 so the user space tool can detect that the driver
|
|
@@ -1132,7 +1134,6 @@ static noinline_for_stack int rtnl_fill_vfinfo(struct sk_buff *skb,
|
|
|
ivi.spoofchk = -1;
|
|
|
ivi.rss_query_en = -1;
|
|
|
ivi.trusted = -1;
|
|
|
- memset(ivi.mac, 0, sizeof(ivi.mac));
|
|
|
/* The default value for VF link state is "auto"
|
|
|
* IFLA_VF_LINK_STATE_AUTO which equals zero
|
|
|
*/
|