Re: [PATCH iproute2-next v2] tc: add skip_hw and skip_sw to control action offload
From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2022-01-31 19:40:47
From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2022-01-31 19:40:47
On 2022-01-26 08:41, Victor Nogueira wrote:
On Wed, Jan 26, 2022 at 3:55 AM Baowen Zheng [off-list ref] wrote:quoted
Add skip_hw and skip_sw flags for user to control whether offload action to hardware. Also we add hw_count to show how many hardwares accept to offload the action. Change man page to describe the usage of skip_sw and skip_hw flag. An example to add and query action as below. $ tc actions add action police rate 1mbit burst 100k index 100 skip_sw $ tc -s -d actions list action police total acts 1 action order 0: police 0x64 rate 1Mbit burst 100Kb mtu 2Kb action reclassify overhead 0b linklayer ethernet ref 1 bind 0 installed 2 sec used 2 sec Action statistics: Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 skip_sw in_hw in_hw_count 1 used_hw_stats delayed Signed-off-by: baowen zheng <redacted> Signed-off-by: Simon Horman <redacted>I applied this version, tested it and can confirm the breakage in tdc is gone. Tested-by: Victor Nogueira <redacted>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> cheers, jamal