]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: add support for tunnel offload without key ID
authorBaowen Zheng <baowen.zheng@corigine.com>
Fri, 29 Jul 2022 09:16:41 +0000 (11:16 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 1 Aug 2022 19:02:47 +0000 (12:02 -0700)
commit679284a8db4d0acd065babf413217cd8c26ce096
tree23ab3710ce46c10ca9c1ca648a33ae2da3cf75ad
parent309aae8c78ef5caf45d114b4c40dd6ca2e09fdc3
nfp: flower: add support for tunnel offload without key ID

Currently nfp driver will reject to offload tunnel key action without
tunnel key ID which means tunnel ID is 0. But it is a normal case for tc
flower since user can setup a tunnel with tunnel ID is 0.

So we need to support this case to accept tunnel key action without
tunnel key ID.

Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20220729091641.354748-1-simon.horman@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/flower/action.c