net: qos: add tc police offloading action with max frame size limit

Current police offloading support the 'burst'' and 'rate_bytes_ps'. Some
hardware own the capability to limit the frame size. If the frame size
larger than the setting, the frame would be dropped. For the police
action itself already accept the 'mtu' parameter in tc command. But not
extend to tc flower offloading. So extend 'mtu' to tc flower offloading.

Signed-off-by: Po Liu <Po.Liu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Po Liu
2020-06-24 17:36:28 +08:00
committed by David S. Miller
parent 147373d968
commit 19e528dc9a
3 changed files with 12 additions and 0 deletions

View File

@@ -234,6 +234,7 @@ struct flow_action_entry {
struct { /* FLOW_ACTION_POLICE */
s64 burst;
u64 rate_bytes_ps;
u32 mtu;
} police;
struct { /* FLOW_ACTION_CT */
int action;