XDP-Newbies Archive mirror
 help / color / mirror / Atom feed
From: "Gaul, Maximilian" <maximilian.gaul@hm.edu>
To: Xdp <xdp-newbies@vger.kernel.org>
Subject: Dynamically adding new multicast streams
Date: Thu, 4 Jun 2020 11:17:11 +0000	[thread overview]
Message-ID: <dd7946c400c544feac167dab0ff4f974@hm.edu> (raw)

Hello everyone,

I try to dynamically add new multicast streams by creating a new AF-XDP socket bound to a RX-Queue.
I also create a new ethtool-rule to steer the flow of the multicast stream towards that RX-Queue.

My BPF program has a Hash-Map which maps a struct consisting of { src-ip, dst-ip, dst-port } to an index in the XSKMap (which is then used to redirect an incoming packet).
So adding a new AF-XDP socket also means adding a new entry to that Hash-Map (and to the XSKMap).

Now what I am experiencing is that the moment I add a new XSK, other already running sockets are loosing some packets (around 10ms worth of packets).
I don't experience any packet loss afterwards.

My question is: Is there something happening inside the XSK- or HashMap which could cause other packet streams to drop packets?

I am not using Shared Umem, just launching a new process which starts that XSK.

Best regards

Max

             reply	other threads:[~2020-06-04 11:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-04 11:17 Gaul, Maximilian [this message]
2020-06-04 11:40 ` Dynamically adding new multicast streams Magnus Karlsson
2020-06-04 11:59   ` AW: " Gaul, Maximilian
2020-06-04 13:01     ` Magnus Karlsson

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=dd7946c400c544feac167dab0ff4f974@hm.edu \
    --to=maximilian.gaul@hm.edu \
    --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 read-only IMAP folder(s) and NNTP newsgroup(s).