Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XDP for window support UDP multicast? #494

Open
Pikadoricrown opened this issue Apr 19, 2024 · 4 comments
Open

XDP for window support UDP multicast? #494

Pikadoricrown opened this issue Apr 19, 2024 · 4 comments
Labels
APIs API design and implementation feature request New feature or request offloads Hardware and software offloads P3
Milestone

Comments

@Pikadoricrown
Copy link

is there a way to subscribe for multicast channel?

@philippdiethelm
Copy link

I had some success by creating a temporary winsock socket and joining the multicast group on the temporary socket. Then I get multicast traffic on the XDP socket until I close the winsock socket. I'm not sure if there is filter (maybe in the NIC) that needs to be set up to pass through the traffic.

@mtfriesen mtfriesen added question Further information is requested P1 labels Jun 11, 2024
@mtfriesen mtfriesen added this to the Backlog milestone Jun 11, 2024
@mtfriesen mtfriesen added feature request New feature or request P3 and removed question Further information is requested P1 labels Jun 14, 2024
@mtfriesen
Copy link
Contributor

@philippdiethelm yes, that's exactly what is happening. NICs filter multicast; this is best-effort and some NICs let multicast through regardless of the programmed filter. Your workaround to open a multicast socket is similar to workarounds we've implemented for other issues, e.g. #44, and should work reliably.

I am converting this to a feature request, since XDP should eventually provide an API to directly configure the multicast group list on the NIC, without the assistance of traditional sockets.

Please reach out if you have more details on your use case, as it helps us prioritize our backlog.

@mtfriesen mtfriesen added offloads Hardware and software offloads APIs API design and implementation labels Jun 14, 2024
@Pikadoricrown
Copy link
Author

I had some success by creating a temporary winsock socket and joining the multicast group on the temporary socket. Then I get multicast traffic on the XDP socket until I close the winsock socket. I'm not sure if there is filter (maybe in the NIC) that needs to be set up to pass through the traffic.

Thanks, Are you using the rxfilter.c
to receive from XDP socket

@philippdiethelm
Copy link

I had some success by creating a temporary winsock socket and joining the multicast group on the temporary socket. Then I get multicast traffic on the XDP socket until I close the winsock socket. I'm not sure if there is filter (maybe in the NIC) that needs to be set up to pass through the traffic.

Thanks, Are you using the rxfilter.c
to receive from XDP socket

I use my own experimental code derived from xskfwd sample: xdp_recv.cpp

BTW: I had to downgrade my NIC driver to make it work completely with xdp. Looks like an incompatibility between nic driver and xdp. (aqnic650.sys 2.2.2.0 works, aqnic650.sys 3.1.x works partially)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIs API design and implementation feature request New feature or request offloads Hardware and software offloads P3
Projects
None yet
Development

No branches or pull requests

3 participants