DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: ssardar@amd.com, dev@dpdk.org
Cc: Ravi1.Kumar@amd.com
Subject: Re: [dpdk-dev] [PATCH v2] net/axgbe: vlan support enabling in axgbe
Date: Fri, 3 Apr 2020 13:56:00 +0100	[thread overview]
Message-ID: <c1e773f3-f04e-8054-7e82-347e1da18ba7@intel.com> (raw)
In-Reply-To: <20200403062001.2728-1-ssardar@amd.com>

On 4/3/2020 7:20 AM, ssardar@amd.com wrote:
> From: Sardar Shamsher Singh <Shamshersingh.Sardar@amd.com>
> 
> adding below APIs for axgbe
> - axgbe_enable_rx_vlan_stripping: to enable vlan header stipping
> - axgbe_disable_rx_vlan_stripping: to disable vlan header stipping
> - axgbe_enable_rx_vlan_filtering: to enable vlan filter mode
> - axgbe_disable_rx_vlan_filtering: to disable vlan filter mode
> - axgbe_update_vlan_hash_table: crc calculation and hash table update
> based on vlan values post filter enable
> - axgbe_vlan_filter_set: setting of active vlan out of max 4K values before
> doing hash update of same
> - axgbe_vlan_tpid_set: setting of default tpid values
> - axgbe_vlan_offload_set: a top layer function to call stip/filter etc
> based on mask values
> 
> Signed-off-by: Sardar Shamsher Singh <Shamshersingh.Sardar@amd.com>
> ---
>  doc/guides/nics/features/axgbe.ini |   1 +
>  drivers/net/axgbe/axgbe_common.h   |  29 +++++
>  drivers/net/axgbe/axgbe_dev.c      | 171 +++++++++++++++++++++++++++--
>  drivers/net/axgbe/axgbe_ethdev.c   | 169 +++++++++++++++++++++++++++-
>  drivers/net/axgbe/axgbe_ethdev.h   |  16 +++
>  drivers/net/axgbe/axgbe_rxtx.c     |   6 +
>  6 files changed, 381 insertions(+), 11 deletions(-)
> 
> diff --git a/doc/guides/nics/features/axgbe.ini b/doc/guides/nics/features/axgbe.ini
> index 0becaa097..b7b4dd992 100644
> --- a/doc/guides/nics/features/axgbe.ini
> +++ b/doc/guides/nics/features/axgbe.ini
> @@ -11,6 +11,7 @@ Scattered Rx         = Y
>  Promiscuous mode     = Y
>  Allmulticast mode    = Y
>  RSS hash             = Y
> +VLAN                 = Y

There is no "VLAN" feautre defined [1], but "VLAN filter" [2] & "VLAN offload"
[3], and in this patch I guess you mean both.

But for "VLAN offload", I don't see the driver sets "PKT_RX_VLAN" or
"PKT_RX_VLAN_STRIPPED" mbuf flags at all. And it doesn't use 'mbuf.vlan_tci' at
all, in both Rx & Tx. Are you sure VLAN offload supported by driver?

And for Tx, driver still uses 'PKT_TX_VLAN_PKT' which is deprecated, can you
please replace it with 'PKT_TX_VLAN'?



[1]
http://lxr.dpdk.org/dpdk/v20.02/source/doc/guides/nics/features/default.ini

[2]
http://lxr.dpdk.org/dpdk/v20.02/source/doc/guides/nics/features.rst#L363

[3]
http://lxr.dpdk.org/dpdk/v20.02/source/doc/guides/nics/features.rst#L474


  parent reply	other threads:[~2020-04-03 12:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-03  6:20 ssardar
2020-04-03  6:22 ` Kumar, Ravi1
2020-04-03 12:56 ` Ferruh Yigit [this message]
     [not found]   ` <DM6PR12MB28906AF812E27286360BE59884C70@DM6PR12MB2890.namprd12.prod.outlook.com>
2020-04-05 17:00     ` Sardar, Shamsher singh
2020-04-06  9:03       ` Ferruh Yigit

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=c1e773f3-f04e-8054-7e82-347e1da18ba7@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=Ravi1.Kumar@amd.com \
    --cc=dev@dpdk.org \
    --cc=ssardar@amd.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).