DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ori Kam <orika@mellanox.com>
To: Shahaf Shuler <shahafs@mellanox.com>, Yongseok Koh <yskoh@mellanox.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, Ori Kam <orika@mellanox.com>
Subject: [dpdk-dev] [RFC] net/mlx5 add hairpin support
Date: Tue, 28 May 2019 14:34:34 +0000	[thread overview]
Message-ID: <AM4PR05MB3425E55B721A4090FCBE7D80DB1E0@AM4PR05MB3425.eurprd05.prod.outlook.com> (raw)

The hairpin feature acts as "bump on the wire", meaning that a packet that is received from the wire
can be modified using offloaded action and then sent back to the wire without application intervention which
can save CPU cycles.

The hairpin is the inverse function of loopback in which application sends a packet then it is received again by the
application without being sent to the wire.

The hairpin can be used by a number of different NVF, for example load balancer, gateway and so on.

In current version the hairpin will work only on routing from the wire port to the same wire port.
This can later be expanded to work between different ports.

The hairpin will be composed of 2 flows one ingress flow, which will be detected as hairpin flow by setting transfer flag = 1 and action port.
The second rule if required, will be normal egress flow.

In order to combine between the flows, the application can set metadata on the ingress which will be copied to the egress were it can be matched.

Signed-off-by: Ori Kam <orika@mellanox.com>
Thanks
Ori Kam




                 reply	other threads:[~2019-05-28 14:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=AM4PR05MB3425E55B721A4090FCBE7D80DB1E0@AM4PR05MB3425.eurprd05.prod.outlook.com \
    --to=orika@mellanox.com \
    --cc=dev@dpdk.org \
    --cc=shahafs@mellanox.com \
    --cc=yskoh@mellanox.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).