Thread (18 messages) 18 messages, 4 authors, 2022-01-27

Re: [net-next v5 2/2] net: sched: support hash/classid/cpuid selecting tx queue

flat view

From: Cong Wang <hidden>
Date: 2021-12-20 17:57:28

On Mon, Dec 20, 2021 at 4:39 AM [off-list ref] wrote:
From: Tonghao Zhang <redacted>

This patch allows user to select queue_mapping, range
from A to B. And user can use skbhash, cgroup classid
and cpuid to select Tx queues. Then we can load balance
packets from A to B queue. The range is an unsigned 16bit
value in decimal format.

$ tc filter ... action skbedit queue_mapping skbhash A B

"skbedit queue_mapping QUEUE_MAPPING" (from "man 8 tc-skbedit")
is enhanced with flags:
* SKBEDIT_F_TXQ_SKBHASH
* SKBEDIT_F_TXQ_CLASSID
* SKBEDIT_F_TXQ_CPUID
Once again, you are enforcing policies in kernel, which is not good.
Kernel should just set whatever you give to it, not selecting policies
like a menu.

Any reason why you can't obtain these values in user-space?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help