From: Ovidiu Panait <ovidiu.pan...@windriver.com> commit 738808ae82d908e5ef4bd025999d44510c0710a7 upstream
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.kits...@intel.com> Signed-off-by: Ovidiu Panait <ovidiu.pan...@windriver.com> Tested-by: Rafal Romanowski <rafal.romanow...@intel.com> Signed-off-by: Tony Nguyen <anthony.l.ngu...@intel.com> Signed-off-by: Liu Haitao <haitao....@windriver.com> --- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c index 15f1eb1c94e4..6f59c937bb8b 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c @@ -1851,5 +1851,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; } -- 2.39.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13953): https://lists.yoctoproject.org/g/linux-yocto/message/13953 Mute This Topic: https://lists.yoctoproject.org/mt/106239654/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-