diff options
author | Po Liu <po.liu@nxp.com> | 2020-06-29 09:54:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-30 03:33:42 +0300 |
commit | 5f035af76e51cd622abc6564d5512ffeb9e06917 (patch) | |
tree | d8535555e53b97e2a5bac14887677f9715898151 /include/net/dsa.h | |
parent | 13f1555c1b4c49b8ab9dd80b7353deec0526ccac (diff) | |
download | linux-5f035af76e51cd622abc6564d5512ffeb9e06917.tar.xz |
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>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 50389772c597..4046ccd1945d 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -144,7 +144,7 @@ struct dsa_mall_mirror_tc_entry { /* TC port policer entry */ struct dsa_mall_policer_tc_entry { - s64 burst; + u32 burst; u64 rate_bytes_per_sec; }; |