[Intel-wired-lan] [patch net-next] iavf: use tc_cls_can_offload_basic() instead of chain check

Jeff Kirsher jeffrey.t.kirsher at intel.com
Tue Feb 25 21:15:46 UTC 2020

On Tue, 2020-02-25 at 13:10 +0100, Jiri Pirko wrote:
> From: Jiri Pirko <jiri at mellanox.com>
> Looks like the iavf code actually experienced a race condition, when
> a
> developer took code before the check for chain 0 was put to helper.
> So use tc_cls_can_offload_basic() helper instead of direct check and
> move the check to _cb() so this is similar to i40e code.
> Signed-off-by: Jiri Pirko <jiri at mellanox.com>

Acked-by: Jeff Kirsher <jeffrey.t.kirsher at intel.com>

Go ahead and pick this up Dave, thanks!

> ---
> This was originally part of "net: allow user specify TC filter HW
> stats type"
> patchset, but it is no longer related after the requested changes.
> Sending separatelly.
> ---
>  drivers/net/ethernet/intel/iavf/iavf_main.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20200225/50d89acb/attachment.asc>

More information about the Intel-wired-lan mailing list