]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "ice: Hide bus-info in ethtool for PRs in switchdev mode"
authorMarcin Szycik <marcin.szycik@linux.intel.com>
Mon, 28 Mar 2022 14:58:28 +0000 (16:58 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 6 May 2022 17:04:17 +0000 (10:04 -0700)
commit120619c28eec470194c91b30fa7fe2773e60bdf3
treec4d623ef94c0941af39725b70ecf671e3e873d80
parent9fc6c7b417fdd7c44d67249a96a7b834d6834336
Revert "ice: Hide bus-info in ethtool for PRs in switchdev mode"

This reverts commit 995e48660e0f094d68d39a6f4aaea96f042685e3.

Commit 995e48660e0f ("ice: Hide bus-info in ethtool for PRs in switchdev
mode") was a workaround for lshw tool displaying incorrect
descriptions for port representors and PF in switchdev mode. Now the issue
has been fixed in the lshw tool itself [1].

Removing the workaround can be considered a regression, as the user might
be running older, unpatched lshw version. However, another important change
(ice: link representors to PCI device, which improves port representor
netdev naming with SET_NETDEV_DEV) also causes the same "regression" as
removing the workaround, i.e. unpatched lshw is able to access bus-info
information (this time not via ethtool) and the bug can occur. Therefore,
the workaround no longer prevents the bug and can be removed.

[1] https://ezix.org/src/pkg/lshw/commit/9bf4e4c9c1

Signed-off-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ethtool.c