Commit 21e2f6b
iavf: use tc_cls_can_offload_and_chain0() instead of chain check
[ Upstream commit bb0858d ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 0d5984b commit 21e2f6b
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3077 | 3077 | | |
3078 | 3078 | | |
3079 | 3079 | | |
3080 | | - | |
3081 | | - | |
3082 | | - | |
3083 | 3080 | | |
3084 | 3081 | | |
3085 | 3082 | | |
| |||
3103 | 3100 | | |
3104 | 3101 | | |
3105 | 3102 | | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
3106 | 3108 | | |
3107 | 3109 | | |
3108 | 3110 | | |
| |||
0 commit comments