]> git.baikalelectronics.ru Git - kernel.git/commit
flow_offload: restrict driver to pass one allowed bit to flow_action_hw_stats_types_c...
authorJiri Pirko <jiri@resnulli.us>
Tue, 10 Mar 2020 15:49:09 +0000 (16:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 23:04:19 +0000 (16:04 -0700)
commita16fa289843d5d4dd7c4d8eb3b2deb15a9d2180e
tree8db1b7e7a3bbd559c06c7e996eab3dd23d7ff1dc
parent42d5fe5f9c19a3c6a74186190936df91dcab4aa4
flow_offload: restrict driver to pass one allowed bit to flow_action_hw_stats_types_check()

The intention of this helper was to allow driver to specify one type
that it supports, so not only "any" value would pass. So make the API
more strict and allow driver to pass only 1 bit that is going
to be checked.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
include/net/flow_offload.h