DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Sunil Kumar Kori <sunil.kori@nxp.com>, dev@dpdk.org
Cc: hemant.agrawal@nxp.com, shreyansh.jain@nxp.com,
	Shahaf Shuler <shahafs@mellanox.com>
Subject: Re: [dpdk-dev] [PATCH 0/2] Non-supported offloads are ignored
Date: Fri, 20 Apr 2018 13:27:52 +0100	[thread overview]
Message-ID: <e0d6ab18-a9ea-2c7f-914f-8b29f00dabcf@intel.com> (raw)
In-Reply-To: <20180420104541.21987-1-sunil.kori@nxp.com>

On 4/20/2018 11:45 AM, Sunil Kumar Kori wrote:
> Currently DPAA/DPAA2 driver returns error if non-supported offloads
> (Rx or Tx) are requested from user which causes init failures in
> multiple application.
> 
> Some offloads may be enabled by default in many hardware and cannot
> be disabled. These offloads cannot be part of capability as toggling
> is not allowed (Like CRC STRIP). Thus DPAA/DPAA2 driver will ignore
> such offloads and rather print warning message.

Hi Sunil,

I understand the usecase, and some PMDs already do same thing.

But instead of ignoring all offloads provided by user, can it be possible to
keep another list of offloads that are free to ignore and return warning for them.

For rest of the offloads you can still return error.

This lets application to get error if a really wrong offload set, also add more
information into driver about offload support and expectations, what do you think?

> 
> Sunil Kumar Kori (2):
>   net/dpaa: non supported offloads are ignored with warning
>   net/dpaa2: non supported offloads are ignored with warning
> 
>  drivers/net/dpaa/dpaa_ethdev.c   | 6 ++----
>  drivers/net/dpaa2/dpaa2_ethdev.c | 6 ++----
>  2 files changed, 4 insertions(+), 8 deletions(-)
> 

  parent reply	other threads:[~2018-04-20 12:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-20 10:45 Sunil Kumar Kori
2018-04-20 10:45 ` [dpdk-dev] [PATCH 1/2] net/dpaa: non supported offloads are ignored with warning Sunil Kumar Kori
2018-04-20 15:20   ` Stephen Hemminger
2018-04-20 10:45 ` [dpdk-dev] [PATCH 2/2] net/dpaa2: " Sunil Kumar Kori
2018-04-20 12:27 ` Ferruh Yigit [this message]
2018-04-23 12:33 ` [dpdk-dev] [PATCH v2 0/2] Non-supported offloads are ignored Sunil Kumar Kori
2018-04-23 12:33   ` [dpdk-dev] [PATCH v2 1/2] net/dpaa: non supported offloads are ignored with warning Sunil Kumar Kori
2018-04-23 14:57     ` Ferruh Yigit
2018-04-23 12:33   ` [dpdk-dev] [PATCH v2 2/2] net/dpaa2: " Sunil Kumar Kori

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=e0d6ab18-a9ea-2c7f-914f-8b29f00dabcf@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=dev@dpdk.org \
    --cc=hemant.agrawal@nxp.com \
    --cc=shahafs@mellanox.com \
    --cc=shreyansh.jain@nxp.com \
    --cc=sunil.kori@nxp.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).