Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH net v4] ice: Fix VSI configuration for non-PF network devices
@ 2022-07-12 15:14 Benjamin Mikailenko
  2022-07-14 20:50 ` Tony Nguyen
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Mikailenko @ 2022-07-12 15:14 UTC (permalink / raw)
  To: intel-wired-lan; +Cc: Benjamin Mikailenko

This fixes an issue for a failing loopback test
"ethtool -t offline ethx". Do not set Rx mode
and VSI VLAN for non-PF network devices.

Fixes: c7f2c42b80ed ("ice: Fix a few null pointer dereference issues")
Signed-off-by: Benjamin Mikailenko <benjamin.mikailenko@intel.com>
---
 drivers/net/ethernet/intel/ice/ice_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
index 752bd8a10495..e4ae67da5b77 100644
--- a/drivers/net/ethernet/intel/ice/ice_main.c
+++ b/drivers/net/ethernet/intel/ice/ice_main.c
@@ -6010,7 +6010,7 @@ int ice_vsi_cfg(struct ice_vsi *vsi)
 {
 	int err;
 
-	if (vsi->netdev) {
+	if (vsi->netdev && vsi->type == ICE_VSI_PF) {
 		ice_set_rx_mode(vsi->netdev);
 
 		err = ice_vsi_vlan_setup(vsi);
-- 
2.34.3

_______________________________________________
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] 4+ messages in thread

* Re: [Intel-wired-lan] [PATCH net v4] ice: Fix VSI configuration for non-PF network devices
  2022-07-12 15:14 [Intel-wired-lan] [PATCH net v4] ice: Fix VSI configuration for non-PF network devices Benjamin Mikailenko
@ 2022-07-14 20:50 ` Tony Nguyen
  2022-07-14 21:11   ` Benjamin Mikailenko
  0 siblings, 1 reply; 4+ messages in thread
From: Tony Nguyen @ 2022-07-14 20:50 UTC (permalink / raw)
  To: Benjamin Mikailenko, intel-wired-lan



On 7/12/2022 8:14 AM, Benjamin Mikailenko wrote:
> This fixes an issue for a failing loopback test
> "ethtool -t offline ethx". Do not set Rx mode
> and VSI VLAN for non-PF network devices.

This sounds very much like this patch/issue [1]. Can you test that and 
see if it fixes this issue.

> Fixes: c7f2c42b80ed ("ice: Fix a few null pointer dereference issues")
> Signed-off-by: Benjamin Mikailenko <benjamin.mikailenko@intel.com>

[1] 
https://lore.kernel.org/intel-wired-lan/20220707102044.48775-3-maciej.fijalkowski@intel.com/T/#u
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Intel-wired-lan] [PATCH net v4] ice: Fix VSI configuration for non-PF network devices
  2022-07-14 20:50 ` Tony Nguyen
@ 2022-07-14 21:11   ` Benjamin Mikailenko
  2022-07-14 21:15     ` Tony Nguyen
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Mikailenko @ 2022-07-14 21:11 UTC (permalink / raw)
  To: Tony Nguyen, intel-wired-lan



On 7/14/2022 1:50 PM, Tony Nguyen wrote:
> 
> 
> On 7/12/2022 8:14 AM, Benjamin Mikailenko wrote:
>> This fixes an issue for a failing loopback test
>> "ethtool -t offline ethx". Do not set Rx mode
>> and VSI VLAN for non-PF network devices.
> 
> This sounds very much like this patch/issue [1]. Can you test that and see if it fixes this issue.

Yes, issue is fixed. Tested on current next-queue dev-queue.

> 
>> Fixes: c7f2c42b80ed ("ice: Fix a few null pointer dereference issues")
>> Signed-off-by: Benjamin Mikailenko <benjamin.mikailenko@intel.com>
> 
> [1] https://lore.kernel.org/intel-wired-lan/20220707102044.48775-3-maciej.fijalkowski@intel.com/T/#u
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Intel-wired-lan] [PATCH net v4] ice: Fix VSI configuration for non-PF network devices
  2022-07-14 21:11   ` Benjamin Mikailenko
@ 2022-07-14 21:15     ` Tony Nguyen
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Nguyen @ 2022-07-14 21:15 UTC (permalink / raw)
  To: Benjamin Mikailenko, intel-wired-lan



On 7/14/2022 2:11 PM, Benjamin Mikailenko wrote:
> 
> 
> On 7/14/2022 1:50 PM, Tony Nguyen wrote:
>>
>>
>> On 7/12/2022 8:14 AM, Benjamin Mikailenko wrote:
>>> This fixes an issue for a failing loopback test
>>> "ethtool -t offline ethx". Do not set Rx mode
>>> and VSI VLAN for non-PF network devices.
>>
>> This sounds very much like this patch/issue [1]. Can you test that and see if it fixes this issue.
> 
> Yes, issue is fixed. Tested on current next-queue dev-queue.

Thanks for the quick check. I'll keep the existing patch and not use 
this one then.

>>
>>> Fixes: c7f2c42b80ed ("ice: Fix a few null pointer dereference issues")
>>> Signed-off-by: Benjamin Mikailenko <benjamin.mikailenko@intel.com>
>>
>> [1] https://lore.kernel.org/intel-wired-lan/20220707102044.48775-3-maciej.fijalkowski@intel.com/T/#u
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-15 13:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-12 15:14 [Intel-wired-lan] [PATCH net v4] ice: Fix VSI configuration for non-PF network devices Benjamin Mikailenko
2022-07-14 20:50 ` Tony Nguyen
2022-07-14 21:11   ` Benjamin Mikailenko
2022-07-14 21:15     ` Tony Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox