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)
commit45490ce2ff833c4ec0de66705e46ba41320860cb
tree23ab3710ce46c10ca9c1ca648a33ae2da3cf75ad
parentf157cfa3a589f6900c81c90620eb895253705e59
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