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: Przemek Kitszel <przemyslaw.kitszel@intel.com> Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Tested-by: Rafal Romanowski <rafal.romanowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
954fb2d2d4
commit
738808ae82
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user