]> git.baikalelectronics.ru Git - kernel.git/commit
flow_offload: Fix flow action infrastructure
authorEli Britstein <elibr@mellanox.com>
Mon, 11 Feb 2019 07:52:59 +0000 (09:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2019 05:30:14 +0000 (21:30 -0800)
commit1ba5e11e80f85c1d244a4be623fdcbffebb3dfc7
tree3075e40cd451a984afa9a3874c5180e0af0ba8ec
parent977aea8f4f71129d2e317a333fffb9d3bed12383
flow_offload: Fix flow action infrastructure

Implementation of macro "flow_action_for_each" introduced in
commit ec9876b876a01 ("flow_offload: add flow action infrastructure")
and used in commit cdc33de7229e8 ("drivers: net: use flow action
infrastructure") iterated the first item twice and did not reach the
last one. Fix it.

Fixes: ec9876b876a01 ("flow_offload: add flow action infrastructure")
Fixes: cdc33de7229e8 ("drivers: net: use flow action infrastructure")
Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_offload.h