From: Yong Wang <yongwang@vmware.com>
To: Pankaj Gupta <pagupta@vmware.com>
Cc: Jochen Behrens <jbehrens@vmware.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [PATCH v2 1/8] net/vmxnet3: add V5 support
Date: Wed, 4 May 2022 23:15:36 +0000 [thread overview]
Message-ID: <53CF8417-7190-454A-A8D0-7258426BF823@vmware.com> (raw)
In-Reply-To: <20220504212252.25117-2-pagupta@vmware.com>
Pankaj,
Can you add reviewed-by info? Also, you need to add info of what has changed since the last version.
Yong
> On May 4, 2022, at 2:23 PM, Pankaj Gupta <pagupta@vmware.com> wrote:
>
> Add VMXNET3 v5 support
>
> Tested, using testpmd, for different hardware version on ESXi 7.0 Update 2.
>
> Signed-off-by: Pankaj Gupta <pagupta@vmware.com>
> ---
> drivers/net/vmxnet3/vmxnet3_ethdev.c | 7 +++++--
> drivers/net/vmxnet3/vmxnet3_ethdev.h | 2 ++
> 2 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c
> index d1ef1cad08..a7e1e5fef5 100644
> --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c
> +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c
> @@ -316,9 +316,12 @@ eth_vmxnet3_dev_init(struct rte_eth_dev *eth_dev)
>
> /* Check h/w version compatibility with driver. */
> ver = VMXNET3_READ_BAR1_REG(hw, VMXNET3_REG_VRRS);
> - PMD_INIT_LOG(DEBUG, "Hardware version : %d", ver);
>
> - if (ver & (1 << VMXNET3_REV_4)) {
> + if (ver & (1 << VMXNET3_REV_5)) {
> + VMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_VRRS,
> + 1 << VMXNET3_REV_5);
> + hw->version = VMXNET3_REV_5 + 1;
> + } else if (ver & (1 << VMXNET3_REV_4)) {
> VMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_VRRS,
> 1 << VMXNET3_REV_4);
> hw->version = VMXNET3_REV_4 + 1;
> diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.h b/drivers/net/vmxnet3/vmxnet3_ethdev.h
> index ef858ac951..7ec3b2e1f0 100644
> --- a/drivers/net/vmxnet3/vmxnet3_ethdev.h
> +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.h
> @@ -124,11 +124,13 @@ struct vmxnet3_hw {
> UPT1_RxStats snapshot_rx_stats[VMXNET3_MAX_RX_QUEUES];
> };
>
> +#define VMXNET3_REV_5 4 /* Vmxnet3 Rev. 5 */
> #define VMXNET3_REV_4 3 /* Vmxnet3 Rev. 4 */
> #define VMXNET3_REV_3 2 /* Vmxnet3 Rev. 3 */
> #define VMXNET3_REV_2 1 /* Vmxnet3 Rev. 2 */
> #define VMXNET3_REV_1 0 /* Vmxnet3 Rev. 1 */
>
> +#define VMXNET3_VERSION_GE_5(hw) ((hw)->version >= VMXNET3_REV_5 + 1)
> #define VMXNET3_VERSION_GE_4(hw) ((hw)->version >= VMXNET3_REV_4 + 1)
> #define VMXNET3_VERSION_GE_3(hw) ((hw)->version >= VMXNET3_REV_3 + 1)
> #define VMXNET3_VERSION_GE_2(hw) ((hw)->version >= VMXNET3_REV_2 + 1)
> --
> 2.17.1
>
next prev parent reply other threads:[~2022-05-04 23:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-04 21:22 [PATCH 0/8] vmxnet3 version V5 and V6 Pankaj Gupta
2022-05-04 21:22 ` [PATCH v2 1/8] net/vmxnet3: add V5 support Pankaj Gupta
2022-05-04 23:15 ` Yong Wang [this message]
2022-05-04 21:22 ` [PATCH v2 2/8] net/vmxnet3: implement reta query and reta update Pankaj Gupta
2022-05-04 21:22 ` [PATCH v2 3/8] net/vmxnet3: add Rx queue usage count utility Pankaj Gupta
2022-05-04 21:22 ` [PATCH v2 4/8] net/vmxnet3: report HW version on FW version get Pankaj Gupta
2022-05-04 21:22 ` [PATCH v2 5/8] net/vmxnet3: version 6 Pankaj Gupta
2022-05-04 21:22 ` [PATCH v2 6/8] net/vmxnet3: advertise RETA size in device info Pankaj Gupta
2022-05-04 21:22 ` [PATCH v2 7/8] net/vmxnet3: set packet type for fragmented packet Pankaj Gupta
2022-05-04 21:22 ` [PATCH v2 8/8] net/vmxnet3: fix merge error in initialization for rxDataRing feature Pankaj Gupta
2022-05-05 8:48 ` [PATCH 0/8] vmxnet3 version V5 and V6 Andrew Rybchenko
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=53CF8417-7190-454A-A8D0-7258426BF823@vmware.com \
--to=yongwang@vmware.com \
--cc=dev@dpdk.org \
--cc=jbehrens@vmware.com \
--cc=pagupta@vmware.com \
/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).