]> git.baikalelectronics.ru Git - kernel.git/commit
net: qos: police action add index for tc flower offloading
authorPo Liu <Po.Liu@nxp.com>
Wed, 24 Jun 2020 09:36:30 +0000 (17:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2020 05:04:26 +0000 (22:04 -0700)
commit73fe1498326c5b774e487ab7173fdf26184ba313
tree104ee4d3e279848e839947ad1eb93fcb9d20e6bd
parent6bca3598d40b3c6a67f59173a19fee3789dde8ff
net: qos: police action add index for tc flower offloading

Hardware device may include more than one police entry. Specifying the
action's index make it possible for several tc filters to share the same
police action when installing the filters.

Propagate this index to device drivers through the flow offload
intermediate representation, so that drivers could share a single
hardware policer between multiple filters.

v1->v2 changes:
- Update the commit message suggest by Ido Schimmel <idosch@idosch.org>

Signed-off-by: Po Liu <Po.Liu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_offload.h
net/sched/cls_api.c