Dynamically adding new multicast streams

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux