Getting mbuf pointer from buf_addr pointer
Dmitry Kozlyuk
dmitry.kozliuk at gmail.com
Tue Jul 12 10:32:34 CEST 2022
2022-07-11 11:21 (UTC+0200), Antonio Di Bacco:
> Is there any API that allows me to get the MBUF pointer given its
> buf_addr pointer?
No.
How did you come across this need?
Sounds like an app design flaw.
What is the original problem you're solving?
P.S. It may be possible in specific cases when you know (from code)
how mempool sets buf_addr for a given mbuf,
and that PMDs don't change buf_addr with the used set of offloads.
Apparently, this approach would be extremely brittle and dangerous.
More information about the users
mailing list