tc flower offload rule priority

From: Naveen Mamindlapalli <hidden>
Date: 2021-03-15 18:51:05

Hi,

I am new to the tc subsystem and trying to understand tc rule
priorities for hardware offloading. I can see that the tc flower
classifier rules are added with a default priority value of 49152 (low
priority) and then the priority is increased for subsequent rules.
When offloading tc flower rules to HW that supports minimal flow
entries (for example: 128), it will be difficult to maintain the
priorities in the same way tc subsystem expects because there is no
one-to-one mapping between SW and HW.

Is it possible for the NIC driver to modify the default behaviour of
the tc subsystem by using the priority value range specified by the
NIC driver to fit the number of HW entries supported such that
one-to-one mapping can be maintained between tc subsystem priorities
and HW entries?

Thanks,
Naveen
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help