-
Notifications
You must be signed in to change notification settings - Fork 16
[newbie] UDS client or API specification? #27
Comments
Hi @thediveo The I think what you're asking for is a So, at least for the moment, without such client, your workload has to perform the "handshake" itself. This entire list of calls in the handshake can be found here. Not all calls are necessary. The main ones are:
You can see some of this implemented in our little end-to-end test here and the CNDP project implement it (in C code) in the uds files here. KR, |
@patrickog11 @davecremins @maryamtahhan thoughts on the client idea? A package that folks could import into their code and it would do the handshake for them. |
Thanks for the responses!
|
@garyloug the client package idea makes sense to help out folks that aren't using c based solutions for sure. @thediveo the fd passed is the fd for the xskmap. The pod owns the whole netdev once it's in the Pod network namespace and there's one xskmap per device. So if it (the pod) needs to create and open multiple af_xdp sockets it's free to do so once it has reference to the map. |
actually, I was looking to the C client to use as I would suspect many people to head for C when dealing with XSKs on the data plane. |
I've browsed a little bit through the repo source code and I've seen the internal
udsserver
anduds
packages. Theuds
package seems to be the part I've marked in the above illustration, taken from the documentation in this repository.What I don't understand yet and haven't found any explicit documentation or examples (if I'm not mistaken): how do I now use this in my container workload, how do I integrate the UDS client into my own workload code?
The text was updated successfully, but these errors were encountered: