Skip to content

Commit

Permalink
mlxsw: spectrum_acl_atcam: Fix wrong comment
Browse files Browse the repository at this point in the history
The key is encoded, not encrypted.

Fixes: c22291f ("mlxsw: spectrum: acl: Implement delta for ERP")
Signed-off-by: Ido Schimmel <[email protected]>
Reviewed-by: Amit Cohen <[email protected]>
Tested-by: Alexander Zubkov <[email protected]>
Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
idosch authored and davem330 committed Jun 10, 2024
1 parent 2aad28e commit 06fcdf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ __mlxsw_sp_acl_atcam_entry_add(struct mlxsw_sp *mlxsw_sp,
sizeof(aentry->enc_key));

/* Compute all needed delta information and clear the delta bits
* from the encrypted key.
* from the encoded key.
*/
delta = mlxsw_sp_acl_erp_delta(aentry->erp_mask);
aentry->delta_info.start = mlxsw_sp_acl_erp_delta_start(delta);
Expand Down

0 comments on commit 06fcdf2

Please sign in to comment.