]> 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)
commit1ff9c53469cba2b0a6a400bbbf93a5695f3f1357
tree8db1b7e7a3bbd559c06c7e996eab3dd23d7ff1dc
parentf47558e3d049df0a43bb5779429999f24100cd59
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