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

Add additional flexibility to the initialization of DPDK to enable flow isolation #152

Open
sbuzzard opened this issue Apr 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@sbuzzard
Copy link

sbuzzard commented Apr 2, 2022

I have a potential use case where I'd like to use isolated flows. The mellanox DPDK driver, which we're using, provides built-in bifracation of DPK and kernel. We'd like to potentially deploy multiple processes against the same port but filtering different inputs. Generally DPDK doesn't support this well, but it is supported with Mellanox by using rte_flow_isolate and then setting the input flow. capsule doesn't provide core abstractions on the flow API but it does provide FFI so that a user can still use these. That said, the rte_flow_isolate needs to be called after eal initialization but before dev config, which in capsule is incorporated, directly or indirectly via port builder, in the Runtime::from_config function. We can't really write an alternate from_config due to the functions needed for it are often private to capsule crate. And I wouldn't really want to since the details of this function are crucial to setting up capsule in general and part of why we use it rather than rolling our own. We aren't sure we want to separate out inputs into separate processes but would like the possibility. capsule could perhaps provide an alternate function (or parameter to the function) to execute rte_flow_isolate (with enable = 1) and have the config set to indicate flow_isolate is set so that on shutdown, you can call rte_flow_isolate (with enable = 0 - not sure you need to do the latter but it's probably good form). I think the flow_isolate would have to be in port builder since I think the port I may try this in a fork but at least wanted to document this desire.

@sbuzzard sbuzzard added the enhancement New feature or request label Apr 2, 2022
@sbuzzard
Copy link
Author

sbuzzard commented Apr 3, 2022

Not that I've recommend this necessarily, but this is what I'm doing as a work-around to make flow isolation work .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant