* [Intel-wired-lan] [PATCH] ixgbe: report link state for VF devices
@ 2023-12-08 10:03 ovidiu.panait
2023-12-08 10:44 ` Przemek Kitszel
0 siblings, 1 reply; 2+ messages in thread
From: ovidiu.panait @ 2023-12-08 10:03 UTC (permalink / raw)
To: intel-wired-lan; +Cc: slawomirx.mrozowicz, anthony.l.nguyen, jesse.brandeburg
From: Ovidiu Panait <ovidiu.panait@windriver.com>
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.
Fixes: 366fd1000995 ("ixgbe: add the ability for the PF to disable VF link state")
Signed-off-by: Ovidiu Panait <ovidiu.panait@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 9cfdfa8a4355..21b18d2f0d55 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
@@ -1849,5 +1849,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.34.1
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Intel-wired-lan] [PATCH] ixgbe: report link state for VF devices
2023-12-08 10:03 [Intel-wired-lan] [PATCH] ixgbe: report link state for VF devices ovidiu.panait
@ 2023-12-08 10:44 ` Przemek Kitszel
0 siblings, 0 replies; 2+ messages in thread
From: Przemek Kitszel @ 2023-12-08 10:44 UTC (permalink / raw)
To: ovidiu.panait, intel-wired-lan
Cc: slawomirx.mrozowicz, anthony.l.nguyen, jesse.brandeburg
On 12/8/23 11:03, ovidiu.panait@windriver.com wrote:
> From: Ovidiu Panait <ovidiu.panait@windriver.com>
>
> 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.
>
> Fixes: 366fd1000995 ("ixgbe: add the ability for the PF to disable VF link state")
I would say that your commit extends ixgbe functionality, and is not a
bugfix. For such cases you should avoid Fixes: tag (just mentioning
commit "that introduced the code/ndo" is fine). With that, you could
also specify the tree as "iwl-next", what will also clarify that you
want Intel VAL to process this patch prior to application.
> Signed-off-by: Ovidiu Panait <ovidiu.panait@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 9cfdfa8a4355..21b18d2f0d55 100644
> --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
> +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
> @@ -1849,5 +1849,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;
> }
code looks fine,
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-08 10:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-08 10:03 [Intel-wired-lan] [PATCH] ixgbe: report link state for VF devices ovidiu.panait
2023-12-08 10:44 ` Przemek Kitszel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox