]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: fix "dump port" command when NPAR enabled
authorAlan Brady <alan.brady@intel.com>
Wed, 24 Aug 2016 18:33:47 +0000 (11:33 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:39:18 +0000 (19:39 -0500)
commitdf7c0850a63a2c5593e3edbc7a57c73c4b8efaa7
tree4f2620ff4c2ffffbf4a39d895f4f863710b0cee5
parent9ff0cccc17f33691f118cb164e0a422f5804fd36
i40e: fix "dump port" command when NPAR enabled

Orabug: 24568124

When using the debugfs to issue the "dump port" command
with NPAR enabled, the firmware reports back with invalid argument.

The issue occurs because the pf->mac_seid was used to perform the query.
This is fine when NPAR is disabled because the switch ID == pf->mac_seid,
however this is not the case when NPAR is enabled.  This fix instead
goes through the VSI to determine the correct ID to use in either case.

Change-ID: I0cd67913a7f2c4a2962e06d39e32e7447cc55b6a
Signed-off-by: Alan Brady <alan.brady@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit a01c7f6709925919e2e3c6c190a92692f63f74e4)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c