Skip to content

Commit

Permalink
common/sfc_efx/base: fix recirculation ID set in outer rules
Browse files Browse the repository at this point in the history
[ upstream commit b4dd34c ]

Recirculation ID field of MAE outer rule insert MCDI is
part of the lookup control structure and it has non-zero
bit offset relative to the byte offset of the structure.

Fixes: 5cf153e ("common/sfc_efx/base: support recirculation ID in outer rules")

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
  • Loading branch information
ol-ivanmal authored and kevintraynor committed Feb 28, 2022
1 parent e4b43ee commit 4874f1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/common/sfc_efx/base/efx_mae.c
Expand Up @@ -2242,7 +2242,8 @@ efx_mae_outer_rule_insert(
memcpy(payload + offset, spec->emms_mask_value_pairs.outer,
MAE_ENC_FIELD_PAIRS_LEN);

MCDI_IN_SET_BYTE(req, MAE_OUTER_RULE_INSERT_IN_RECIRC_ID,
MCDI_IN_SET_DWORD_FIELD(req, MAE_OUTER_RULE_INSERT_IN_LOOKUP_CONTROL,
MAE_OUTER_RULE_INSERT_IN_RECIRC_ID,
spec->emms_outer_rule_recirc_id);

efx_mcdi_execute(enp, &req);
Expand Down

0 comments on commit 4874f1d

Please sign in to comment.