From: Paul Menzel <pmenzel@molgen.mpg.de>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH net-next] Revert "ice: Hide bus-info in ethtool for PRs in switchdev mode"
Date: Mon, 21 Mar 2022 15:57:31 +0100 [thread overview]
Message-ID: <a7dcc837-e24e-86d6-059c-416ad3357fe0@molgen.mpg.de> (raw)
In-Reply-To: <20220321144731.3935-1-marcin.szycik@linux.intel.com>
Dear Marcin,
Am 21.03.22 um 15:47 schrieb Marcin Szycik:
> This reverts commit bfaaba99e680bf82bf2cbf69866c3f37434ff766.
>
> Commit bfaaba99e680 ("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].
>
> [1] https://ezix.org/src/pkg/lshw/commit/9bf4e4c9c1
As you cannot know what lshw version users have installed, I am afraid
the workaround (part of Linux 5.16. and 5.17) has to stay in the Linux
kernel to not violate Linux? no-regression policy.
What are the downsides of keeping the workaround around?
Kind regards,
Paul
> Signed-off-by: Marcin Szycik <marcin.szycik@linux.intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_ethtool.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c
> index 24cda7e1f916..476bd1c83c87 100644
> --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c
> +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c
> @@ -190,19 +190,17 @@ __ice_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo,
> snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
> "%x.%02x 0x%x %d.%d.%d", nvm->major, nvm->minor,
> nvm->eetrack, orom->major, orom->build, orom->patch);
> +
> + strscpy(drvinfo->bus_info, pci_name(pf->pdev),
> + sizeof(drvinfo->bus_info));
> }
>
> static void
> ice_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)
> {
> struct ice_netdev_priv *np = netdev_priv(netdev);
> - struct ice_pf *pf = np->vsi->back;
>
> __ice_get_drvinfo(netdev, drvinfo, np->vsi);
> -
> - strscpy(drvinfo->bus_info, pci_name(pf->pdev),
> - sizeof(drvinfo->bus_info));
> -
> drvinfo->n_priv_flags = ICE_PRIV_FLAG_ARRAY_SIZE;
> }
>
next prev parent reply other threads:[~2022-03-21 14:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 14:47 [Intel-wired-lan] [PATCH net-next] Revert "ice: Hide bus-info in ethtool for PRs in switchdev mode" Marcin Szycik
2022-03-21 14:57 ` Paul Menzel [this message]
2022-03-21 16:14 ` Marcin Szycik
2022-03-22 18:39 ` Keller, Jacob E
2022-03-22 18:26 ` Keller, Jacob E
2022-03-22 18:54 ` Keller, Jacob E
2022-03-24 14:51 ` Marcin Szycik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a7dcc837-e24e-86d6-059c-416ad3357fe0@molgen.mpg.de \
--to=pmenzel@molgen.mpg.de \
--cc=intel-wired-lan@osuosl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox