net:qos: police action offloading parameter 'burst' change to the original value
authorPo Liu <po.liu@nxp.com>
Mon, 29 Jun 2020 06:54:16 +0000 (14:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:33:42 +0000 (17:33 -0700)
commit5f035af76e51cd622abc6564d5512ffeb9e06917
treed8535555e53b97e2a5bac14887677f9715898151
parent13f1555c1b4c49b8ab9dd80b7353deec0526ccac
net:qos: police action offloading parameter 'burst' change to the original value

Since 'tcfp_burst' with TICK factor, driver side always need to recover
it to the original value, this patch moves the generic calculation and
recover to the 'burst' original value before offloading to device driver.

Signed-off-by: Po Liu <po.liu@nxp.com>
Acked-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c
drivers/net/dsa/sja1105/sja1105_flower.c
drivers/net/dsa/sja1105/sja1105_main.c
drivers/net/ethernet/freescale/enetc/enetc_qos.c
drivers/net/ethernet/mscc/ocelot_flower.c
drivers/net/ethernet/mscc/ocelot_net.c
drivers/net/ethernet/netronome/nfp/flower/qos_conf.c
include/net/dsa.h
include/net/flow_offload.h
include/net/tc_act/tc_police.h
net/sched/cls_api.c