net: add rps_tag_ptr type and helpers
Add a new rps_tag_ptr type to encode a pointer and a size to a power-of-two table.
Three helpers are added converting an rps_tag_ptr to:
1) A log of the size.
net: add rps_tag_ptr type and helpers
Add a new rps_tag_ptr type to encode a pointer and a size to a power-of-two table.
Three helpers are added converting an rps_tag_ptr to:
1) A log of the size.
2) A mask : (size - 1).
3) A pointer to the array.
Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260302181432.1836150-2-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|