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

POC: Extending Kernel notifier framework to send messages to user space #17

Open
maryamtahhan opened this issue Jul 26, 2023 · 2 comments

Comments

@maryamtahhan
Copy link
Collaborator

maryamtahhan commented Jul 26, 2023

Presently, all Kernel Hardware Offload L2 and L3 notifications have no user space visibility and no means of accessing/controlling them via netlink. They are intended to be used by device drivers. An offload capable device driver registers a listener, receives these notifications, processes the information and informs the kernel if it performs any offloads. At that point, the kernel will mark any offloaded L2 and L3 forwarding entries. Expiration timers and stats for them will no longer be available.

The goal of this task is to enable a user space notification mechanism for when these events happen so that the Kernel sends notifications to a user space application which can also respond to these notifications

DOD: patches pushed to a github repo

@maryamtahhan
Copy link
Collaborator Author

Current POC and patches are available at: https://github.com/kot-begemot-uk/bpfnic-ng

The POC captures kernel switchdev L2 notifications, sends them to userspace, simulates userspace processing, sends a modified notification back to the kernel and issues a response.

@maryamtahhan maryamtahhan changed the title Extending Kernel notifier framework to send messages to user space POC: Extending Kernel notifier framework to send messages to user space Jul 26, 2023
@maryamtahhan maryamtahhan moved this to Done in ekho Jul 26, 2023
@maryamtahhan
Copy link
Collaborator Author

TODO - work with Anton to get him added to the project as a contributor when he's back from PTO...

@donaldh donaldh assigned donaldh and unassigned donaldh Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants