linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dennis Dalessandro <dennis.dalessandro@intel.com>
To: Leon Romanovsky <leon@kernel.org>,
	Doug Ledford <dledford@redhat.com>,
	Jason Gunthorpe <jgg@mellanox.com>
Cc: Leon Romanovsky <leonro@mellanox.com>,
	RDMA mailing list <linux-rdma@vger.kernel.org>
Subject: Re: [PATCH rdma-next 2/2] RDMA/opa_vnic: Delete driver version
Date: Thu, 20 Feb 2020 08:32:35 -0500	[thread overview]
Message-ID: <a5b477e5-1c2b-055b-b617-76351b290adf@intel.com> (raw)
In-Reply-To: <20200220071239.231800-3-leon@kernel.org>

On 2/20/2020 2:12 AM, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@mellanox.com>
> 
> The default version provided by "ethtool -i" it the correct way
> to identify Driver version. There is no need to overwrite it.
> 
> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
> ---
>   drivers/infiniband/ulp/opa_vnic/opa_vnic_ethtool.c  | 2 --
>   drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h | 1 -
>   drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c     | 5 -----
>   3 files changed, 8 deletions(-)
> 
> diff --git a/drivers/infiniband/ulp/opa_vnic/opa_vnic_ethtool.c b/drivers/infiniband/ulp/opa_vnic/opa_vnic_ethtool.c
> index 8ad7da989a0e..42d557dff19d 100644
> --- a/drivers/infiniband/ulp/opa_vnic/opa_vnic_ethtool.c
> +++ b/drivers/infiniband/ulp/opa_vnic/opa_vnic_ethtool.c
> @@ -125,8 +125,6 @@ static void vnic_get_drvinfo(struct net_device *netdev,
>   			     struct ethtool_drvinfo *drvinfo)
>   {
>   	strlcpy(drvinfo->driver, opa_vnic_driver_name, sizeof(drvinfo->driver));
> -	strlcpy(drvinfo->version, opa_vnic_driver_version,
> -		sizeof(drvinfo->version));
>   	strlcpy(drvinfo->bus_info, dev_name(netdev->dev.parent),
>   		sizeof(drvinfo->bus_info));
>   }

Is there a patch series to get rid of drvinfo->version? Seems to me if 
we don't want drivers to set it then we don't need it to begin with do we?

Regardless I don't have any objections to the patch. We've been down 
this road with version numbers and I believe this was added to vnic 
specifically to fill in something for ethtool.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>

-Denny

  reply	other threads:[~2020-02-20 13:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20  7:12 [PATCH rdma-next 0/2] Drop driver version in favor of default ethtool Leon Romanovsky
2020-02-20  7:12 ` [PATCH rdma-next 1/2] RDMA/ipoib: Don't set constant driver version Leon Romanovsky
2020-02-20 13:34   ` Dennis Dalessandro
2020-02-20 13:46     ` Leon Romanovsky
2020-02-20  7:12 ` [PATCH rdma-next 2/2] RDMA/opa_vnic: Delete " Leon Romanovsky
2020-02-20 13:32   ` Dennis Dalessandro [this message]
2020-02-20 13:44     ` Leon Romanovsky
2020-02-27 20:42 ` [PATCH rdma-next 0/2] Drop driver version in favor of default ethtool Jason Gunthorpe

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=a5b477e5-1c2b-055b-b617-76351b290adf@intel.com \
    --to=dennis.dalessandro@intel.com \
    --cc=dledford@redhat.com \
    --cc=jgg@mellanox.com \
    --cc=leon@kernel.org \
    --cc=leonro@mellanox.com \
    --cc=linux-rdma@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).