Commit 738808ae authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Tony Nguyen
Browse files

ixgbe: report link state for VF devices



The link state of VF devices can be controlled via "ip link set", but the
current state (auto/disabled) is not reported by "ip link show".

Update ixgbe_ndo_get_vf_config() to make this info available to userspace.

Reviewed-by: default avatarPrzemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: default avatarOvidiu Panait <ovidiu.panait@windriver.com>
Tested-by: default avatarRafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 954fb2d2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1847,5 +1847,6 @@ int ixgbe_ndo_get_vf_config(struct net_device *netdev,
	ivi->spoofchk = adapter->vfinfo[vf].spoofchk_enabled;
	ivi->rss_query_en = adapter->vfinfo[vf].rss_query_enabled;
	ivi->trusted = adapter->vfinfo[vf].trusted;
	ivi->linkstate = adapter->vfinfo[vf].link_state;
	return 0;
}