xdp-newbies.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Magnus Karlsson <magnus.karlsson@gmail.com>
To: ratheesh kannoth <ratheesh.ksz@gmail.com>
Cc: Jesper Dangaard Brouer <brouer@redhat.com>,
	Xdp <xdp-newbies@vger.kernel.org>
Subject: Re: AF_XDP question
Date: Mon, 3 May 2021 10:19:13 +0200	[thread overview]
Message-ID: <CAJ8uoz0O7_8D44gZ9Vs_0bYCW1kcT-uWdPsuZci-qC7CAMueiQ@mail.gmail.com> (raw)
In-Reply-To: <CAGZFCEFQJSm2K3L-oVKddtvxJf0TiVupudSFzaL_eSCCF5-CQw@mail.gmail.com>

On Thu, Apr 29, 2021 at 4:34 PM ratheesh kannoth <ratheesh.ksz@gmail.com> wrote:
>
> Hi,
>
> Suppose a DPI application running on a AF_XDP socket ( zero copy ) and after inspecting , say 100 initial packets of the flow, decides to accelerate the flow in HW.

Could you please give an example on what you mean with "accelerate the
flow in HW". Many things could be accelerated and in many different
ways.

> 1. Do we have use case and products/solutions in market which does the same ?
>
> Just thinking, since packet buffer is from umem, how another entity (hw) can accelerate.

It is possible to share the umem between AF_XDP sockets using
xsk_socket__create_shared() function in libbpf. It works between
netdevs, i.e. separate physical cards. But need the example first to
be able to help you in a better way.

/Magnus

> Ratheesh.
>
>
>
>
>
>
>

           reply	other threads:[~2021-05-03  8:19 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAGZFCEFQJSm2K3L-oVKddtvxJf0TiVupudSFzaL_eSCCF5-CQw@mail.gmail.com>]

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=CAJ8uoz0O7_8D44gZ9Vs_0bYCW1kcT-uWdPsuZci-qC7CAMueiQ@mail.gmail.com \
    --to=magnus.karlsson@gmail.com \
    --cc=brouer@redhat.com \
    --cc=ratheesh.ksz@gmail.com \
    --cc=xdp-newbies@vger.kernel.org \
    /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).