]> 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)
commit217ca629be0f6a6786759a7daf2925132768b4bb
tree23ab3710ce46c10ca9c1ca648a33ae2da3cf75ad
parent8cff4385ce1a322c0120ba49f7c1725f3964c80d
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