From: Or Gerlitz <gerlitz.or@gmail.com>
To: Eran Ben Elisha <eranlinuxmellanox@gmail.com>
Cc: Saeed Mahameed <saeedm@mellanox.com>,
Eran Ben Elisha <eranbe@mellanox.com>,
"David S. Miller" <davem@davemloft.net>,
Linux Netdev List <netdev@vger.kernel.org>,
Alexander Duyck <alexander.h.duyck@intel.com>,
Tom Herbert <tom@herbertland.com>
Subject: Re: [net 4/8] net/mlx5e: Don't allow aRFS for encapsulated packets
Date: Thu, 19 Jul 2018 13:29:19 +0300 [thread overview]
Message-ID: <CAJ3xEMhEMuVcG2ELJAkMLiTxH-e9SnF2SRpJudCPTAU44c3ccg@mail.gmail.com> (raw)
In-Reply-To: <CAKHjkjm8-hf5LEYZpYVGO_RhJrAXqwtiDu4Ya4ohzGez_UdxTg@mail.gmail.com>
On Thu, Jul 19, 2018 at 12:02 PM, Eran Ben Elisha
<eranlinuxmellanox@gmail.com> wrote:
> On Thu, Jul 19, 2018 at 10:50 AM, Or Gerlitz <gerlitz.or@gmail.com> wrote:
>> On Thu, Jul 19, 2018 at 9:55 AM, Eran Ben Elisha
>> <eranlinuxmellanox@gmail.com> wrote:
>>> On Thu, Jul 19, 2018 at 9:23 AM, Or Gerlitz <gerlitz.or@gmail.com> wrote:
>>>> On Thu, Jul 19, 2018 at 4:26 AM, Saeed Mahameed <saeedm@mellanox.com> wrote:
>>>>> From: Eran Ben Elisha <eranbe@mellanox.com>
>>>>>
>>>>> Driver is yet to support aRFS for encapsulated packets, return early
>>>>> error in such case.
>>>>
>>>>
>>>> Eran,
>>>>
>>>> Isn't that something which is done wrong by the arfs stack code?
>>>>
>>>> If the kernel has an SKB which has encap set and an arfs steering
>>>> rule is programed into the driver, the API should include a driver neutral
>>>> description for the encap header for the HW to match, so maybe we can just do
>>>>
>>>
>>> Hi Or,
>>> This could break existing drivers support for tunneled aRFS, and hurts
>>> their RX performance dramatically..
>>
>>> IMHO, it is expected from the driver to figure out that the skb holds
>>> encap packet and act accordingly.
>>
>> I don't think this one bit indication on the skb is enough for
>> any HW driver (e.g mlx4, mlx5 and others) to properly set
>> the steering rules.
>
> why do you think it is not enough?
> mlx5e currently cannot offload tunneled packets, so this info is
> perfectly fit in order to reject.
Do we know that all the flows in stack that deals with reception of packets do
this marking for encapsulated packets? is this documented some/where? if
this is what we think, then the patch is ok.
next prev parent reply other threads:[~2018-07-19 11:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-19 1:26 [pull request][net 0/8] Mellanox, mlx5 fixes 2018-07-18 Saeed Mahameed
2018-07-19 1:26 ` [net 1/8] net/mlx5e: Refine ets validation function Saeed Mahameed
2018-07-19 1:26 ` [net 2/8] net/mlx5: Adjust clock overflow work period Saeed Mahameed
2018-07-19 1:26 ` [net 3/8] net/mlx5e: Fix quota counting in aRFS expire flow Saeed Mahameed
2018-07-19 1:26 ` [net 4/8] net/mlx5e: Don't allow aRFS for encapsulated packets Saeed Mahameed
2018-07-19 6:23 ` Or Gerlitz
2018-07-19 6:55 ` Eran Ben Elisha
2018-07-19 7:50 ` Or Gerlitz
2018-07-19 9:02 ` Eran Ben Elisha
2018-07-19 10:29 ` Or Gerlitz [this message]
2018-07-19 1:26 ` [net 5/8] net/mlx5: E-Switch, UBSAN fix undefined behavior in mlx5_eswitch_mode Saeed Mahameed
2018-07-19 1:26 ` [net 6/8] net/mlx5: Fix 'DON'T_TRAP' functionality Saeed Mahameed
2018-07-19 1:26 ` [net 7/8] net/mlx5: Fix QP fragmented buffer allocation Saeed Mahameed
2018-07-19 1:26 ` [net 8/8] net/mlx5e: Only allow offloading decap egress (egdev) flows Saeed Mahameed
2018-07-21 17:20 ` [pull request][net 0/8] Mellanox, mlx5 fixes 2018-07-18 David Miller
2018-07-23 21:27 ` Saeed Mahameed
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=CAJ3xEMhEMuVcG2ELJAkMLiTxH-e9SnF2SRpJudCPTAU44c3ccg@mail.gmail.com \
--to=gerlitz.or@gmail.com \
--cc=alexander.h.duyck@intel.com \
--cc=davem@davemloft.net \
--cc=eranbe@mellanox.com \
--cc=eranlinuxmellanox@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=saeedm@mellanox.com \
--cc=tom@herbertland.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).