]> git.baikalelectronics.ru Git - kernel.git/commit
net: qos: add tc police offloading action with max frame size limit
authorPo Liu <Po.Liu@nxp.com>
Wed, 24 Jun 2020 09:36:28 +0000 (17:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2020 05:04:26 +0000 (22:04 -0700)
commit984930f5ad885911e4003ff3c7fb8d5c2e878cd1
treebf1c7dc5c479f69254176b454851dc4bee8e76f7
parentf75ce6e7d99906fb14ba2c582611d2e960b345e2
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>
include/net/flow_offload.h
include/net/tc_act/tc_police.h
net/sched/cls_api.c