diff options
author | Wojciech Drewek <[email protected]> | 2024-07-01 11:05:46 +0200 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2024-07-23 15:26:41 -0700 |
commit | 19abb9c2b900bad59e0a9818d6c83bb4cc875437 (patch) | |
tree | 97e3a874db1238af63c375877f00354f4f1dc086 /lib/test_fortify/write_overflow-strscpy.c | |
parent | 6ebbe97a488179f5dc85f2f1e0c89b486e99ee97 (diff) |
ice: Fix recipe read procedure
When ice driver reads recipes from firmware information about
need_pass_l2 and allow_pass_l2 flags is not stored correctly.
Those flags are stored as one bit each in ice_sw_recipe structure.
Because of that, the result of checking a flag has to be casted to bool.
Note that the need_pass_l2 flag currently works correctly, because
it's stored in the first bit.
Fixes: bccd9bce29e0 ("ice: Add guard rule when creating FDB in switchdev")
Reviewed-by: Marcin Szycik <[email protected]>
Reviewed-by: Przemek Kitszel <[email protected]>
Signed-off-by: Wojciech Drewek <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Tested-by: Sujai Buvaneswaran <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions