]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: use tc_cls_can_offload_and_chain0() instead of chain check
authorJiri Pirko <jiri@mellanox.com>
Wed, 26 Feb 2020 08:21:57 +0000 (09:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Feb 2020 17:01:19 +0000 (09:01 -0800)
commitc916f45db717d21a9f4250443bb2c3eb792f0f66
tree1f31698a315544e1c85ae5fa62817c23edafbb27
parent87e152834bd2e33aa5357e9572aeb802d4fa0a5b
iavf: use tc_cls_can_offload_and_chain0() instead of chain check

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_and_chain0() helper instead of direct check and
move the check to _cb() so this is similar to i40e code.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/iavf/iavf_main.c