diff options
author | Po Liu <Po.Liu@nxp.com> | 2020-06-24 11:36:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-25 07:04:26 +0200 |
commit | 19e528dc9af29169fa7cdfa61071805fdef504c6 (patch) | |
tree | bf1c7dc5c479f69254176b454851dc4bee8e76f7 /net/sched | |
parent | lan743x: Remove duplicated include from lan743x_main.c (diff) | |
download | linux-19e528dc9af29169fa7cdfa61071805fdef504c6.tar.xz linux-19e528dc9af29169fa7cdfa61071805fdef504c6.zip |
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>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/cls_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index a00a203b2ef5..6aba7d5ba1ec 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -3658,6 +3658,7 @@ int tc_setup_flow_action(struct flow_action *flow_action, entry->police.burst = tcf_police_tcfp_burst(act); entry->police.rate_bytes_ps = tcf_police_rate_bytes_ps(act); + entry->police.mtu = tcf_police_tcfp_mtu(act); } else if (is_tcf_ct(act)) { entry->id = FLOW_ACTION_CT; entry->ct.action = tcf_ct_action(act); |