netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] igb: disable virtualization features on 82580
@ 2023-08-31  8:09 Corinna Vinschen
  2023-08-31 11:41 ` Paolo Abeni
  0 siblings, 1 reply; 3+ messages in thread
From: Corinna Vinschen @ 2023-08-31  8:09 UTC (permalink / raw)
  To: Tony Nguyen, jesse.brandeburg, intel-wired-lan, netdev

Disable virtualization features on 82580 just as on i210/i211.
This avoids that virt functions are acidentally called on 82850.

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
---
 drivers/net/ethernet/intel/igb/igb_main.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 1ab787ed254d..13ba9c74bd84 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -3933,8 +3933,9 @@ static void igb_probe_vfs(struct igb_adapter *adapter)
 	struct pci_dev *pdev = adapter->pdev;
 	struct e1000_hw *hw = &adapter->hw;
 
-	/* Virtualization features not supported on i210 family. */
-	if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211))
+	/* Virtualization features not supported on i210 and 82580 family. */
+	if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211) ||
+	    (hw->mac.type == e1000_82580))
 		return;
 
 	/* Of the below we really only want the effect of getting
-- 
2.31.1


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

* Re: [PATCH] igb: disable virtualization features on 82580
  2023-08-31  8:09 [PATCH] igb: disable virtualization features on 82580 Corinna Vinschen
@ 2023-08-31 11:41 ` Paolo Abeni
  2023-08-31 12:19   ` Corinna Vinschen
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Abeni @ 2023-08-31 11:41 UTC (permalink / raw)
  To: Corinna Vinschen, Tony Nguyen, jesse.brandeburg, intel-wired-lan,
	netdev

On Thu, 2023-08-31 at 10:09 +0200, Corinna Vinschen wrote:
> Disable virtualization features on 82580 just as on i210/i211.
> This avoids that virt functions are acidentally called on 82850.
> 
> Signed-off-by: Corinna Vinschen <vinschen@redhat.com>

This looks like a fix to me?!? if so a suitable 'Fixes' tag should be
included.

Thanks!

Paolo


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

* Re: [PATCH] igb: disable virtualization features on 82580
  2023-08-31 11:41 ` Paolo Abeni
@ 2023-08-31 12:19   ` Corinna Vinschen
  0 siblings, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2023-08-31 12:19 UTC (permalink / raw)
  To: Paolo Abeni; +Cc: Tony Nguyen, jesse.brandeburg, intel-wired-lan, netdev

Hi Paolo,

On Aug 31 13:41, Paolo Abeni wrote:
> On Thu, 2023-08-31 at 10:09 +0200, Corinna Vinschen wrote:
> > Disable virtualization features on 82580 just as on i210/i211.
> > This avoids that virt functions are acidentally called on 82850.
> > 
> > Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
> 
> This looks like a fix to me?!? if so a suitable 'Fixes' tag should be
> included.

I tried, but failed to come up with one.  When 82580 was introduced, the
conditional in question didn't exist at all and the igb_probe_vfs
function looked pretty different.  When i210 was introduced, the
conditional was created the first time.  So I was a bit puzzled if this
fixes the patch introducing 82580, or if it fixes the introduction of
the conditional, or if it's just kind of "new functionality".

Your mail got me thinking again, and I'm going to send a v2, blaming the
patch introducing 52580. It failed to guard igb_probe_vfs correctly.
When i210 was introduced, a matching conditional should have already
existed.


Thanks,
Corinna


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

end of thread, other threads:[~2023-08-31 12:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-31  8:09 [PATCH] igb: disable virtualization features on 82580 Corinna Vinschen
2023-08-31 11:41 ` Paolo Abeni
2023-08-31 12:19   ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).