DPDK patches and discussions
 help / color / mirror / Atom feed
From: Shahaf Shuler <shahafs@mellanox.com>
To: Ferruh Yigit <ferruh.yigit@intel.com>,
	Andrew Rybchenko <arybchenko@solarflare.com>,
	Thomas Monjalon <thomas@monjalon.net>,
	Wei Dai <wei.dai@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Rx/Tx offloads checks behaviour in 18.05
Date: Mon, 14 May 2018 10:19:59 +0000	[thread overview]
Message-ID: <DB7PR05MB4426FC491099DB3D5AFDAF8CC39C0@DB7PR05MB4426.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <d60bcdb8-3a7c-32f9-ea1c-d2ac1f29d121@intel.com>

Monday, May 14, 2018 1:00 PM, Ferruh Yigit:
> >
> > It depends on which PMD is used. Yes, it was no checks in ethdev before.
> > If PMD does not support multi-segment Tx, some checksum or VLAN
> > insertion offload, but application requests it and rely on it, it will
> > result in invalid packets sent to network.
> >
> > I realize that some applications may simply use empty txq_flags, but
> > do not use any offloads in fact. If so, such PMDs will fail to setup
> > TxQ if checks are made fatal, return error and underlying PMD does not
> >  support these offloads.
> >
> > At least it is safer behaviour than transmitting garbage.
> > Yes, not easy decision.
> >
> > I will publish my patches which passed our tests.
> >
> >
> >
> > I agree with Andrew here. Even though there is a concern about the
> > existing application we cannot use only logging.
> >
> > It is better to enforce the right behavior rather than having wrong
> > configuration silently accepted by the PMD.
> 
> What do you think send an error for the application that switch to new
> offloading API and only print error log for the old ones. I believe we can
> detect this via ETH_TXQ_FLAGS_IGNORE and ignore_offload_bitfield.
> 
> And we will already force old applications to switch to new API next release,
> next release we can introduce return error without condition.
> Does it make sense?

The issue is currently none of the PMDs verify the offloads v.s. the caps as ethdev layer does it. 
We cannot have offload to be set if it is not supported, even under the old API. allowing such breach on ethdev means we need to enforce it back again on each PMD. 


  reply	other threads:[~2018-05-14 10:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-11  7:07 Andrew Rybchenko
2018-05-11 14:22 ` Ferruh Yigit
2018-05-11 16:08   ` Andrew Rybchenko
2018-05-13  5:30     ` Shahaf Shuler
2018-05-14 10:00       ` Ferruh Yigit
2018-05-14 10:19         ` Shahaf Shuler [this message]
2018-05-14 14:10           ` Ferruh Yigit
2018-05-14 14:15             ` Thomas Monjalon

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=DB7PR05MB4426FC491099DB3D5AFDAF8CC39C0@DB7PR05MB4426.eurprd05.prod.outlook.com \
    --to=shahafs@mellanox.com \
    --cc=arybchenko@solarflare.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=thomas@monjalon.net \
    --cc=wei.dai@intel.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).