]> www.infradead.org Git - nvme.git/commit
ice: Fix recipe read procedure
authorWojciech Drewek <wojciech.drewek@intel.com>
Mon, 1 Jul 2024 09:05:46 +0000 (11:05 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 23 Jul 2024 22:26:41 +0000 (15:26 -0700)
commit19abb9c2b900bad59e0a9818d6c83bb4cc875437
tree97e3a874db1238af63c375877f00354f4f1dc086
parent6ebbe97a488179f5dc85f2f1e0c89b486e99ee97
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 <marcin.szycik@linux.intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_switch.c