]> git.baikalelectronics.ru Git - kernel.git/commit
net: qos offload add flow status with dropped count
authorPo Liu <Po.Liu@nxp.com>
Fri, 19 Jun 2020 06:01:07 +0000 (14:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jun 2020 19:53:30 +0000 (12:53 -0700)
commit650e7fab6100cbe4235f7dc4f48299fa0768a3fa
tree5e780a81a8795b96dd46754d1695bf48c0bea2c0
parent2b2d2341b3d906eb107a2d79805916312e563427
net: qos offload add flow status with dropped count

This patch adds a drop frames counter to tc flower offloading.
Reporting h/w dropped frames is necessary for some actions.
Some actions like police action and the coming introduced stream gate
action would produce dropped frames which is necessary for user. Status
update shows how many filtered packets increasing and how many dropped
in those packets.

v2: Changes
 - Update commit comments suggest by Jiri Pirko.

Signed-off-by: Po Liu <Po.Liu@nxp.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
25 files changed:
drivers/net/dsa/sja1105/sja1105_vl.c
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.c
drivers/net/ethernet/freescale/enetc/enetc_qos.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c
drivers/net/ethernet/mscc/ocelot_flower.c
drivers/net/ethernet/netronome/nfp/flower/offload.c
drivers/net/ethernet/netronome/nfp/flower/qos_conf.c
include/net/act_api.h
include/net/flow_offload.h
include/net/pkt_cls.h
net/sched/act_api.c
net/sched/act_ct.c
net/sched/act_gact.c
net/sched/act_gate.c
net/sched/act_mirred.c
net/sched/act_pedit.c
net/sched/act_police.c
net/sched/act_skbedit.c
net/sched/act_vlan.c
net/sched/cls_flower.c
net/sched/cls_matchall.c