]> git.droids-corp.org - dpdk.git/commit
net/ice: fix flow redirect
authorDapeng Yu <dapengx.yu@intel.com>
Thu, 4 Nov 2021 08:45:35 +0000 (16:45 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 4 Nov 2021 10:55:22 +0000 (11:55 +0100)
commit3378e71244b2b2a1a14f94ece735352b5c34dd99
tree83467b67292cc142948217b170f5c8a546028f40
parent9fda31c3229ca6e036cae80392578ed6e5a51119
net/ice: fix flow redirect

It's possible that a switch rule can't be redirect successfully due
to kernel driver is busy to handle an ongoing VF reset, so the
redirect action need to be deferred into next redirect request which
is promised by kernel driver after VF reset done.

This patch uses the saved flow rule's data to replay switch rule
remove/add during next flow redirect.

Fixes: 397b4b3c5095 ("net/ice: enable flow redirect on switch")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_switch_filter.c