common/sfc_efx/base: add missing handler for 1-byte fields
One may set RECIRC_ID in a MAE action rule specification.
This field is not a network one, and its handling goes
to the code snippet which does not recognise field
sizes other than 4 bytes. Add the missing handler.
Fixes: 3a73dcfdb2
("common/sfc_efx/base: match on recirc ID in action rules")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
This commit is contained in:
parent
b4dd34c7f7
commit
a3b2ade480
@ -1027,6 +1027,10 @@ efx_mae_match_spec_field_set(
|
||||
memcpy(mvp + descp->emmd_value_offset,
|
||||
&dword, sizeof (dword));
|
||||
break;
|
||||
case 1:
|
||||
memcpy(mvp + descp->emmd_value_offset,
|
||||
value, 1);
|
||||
break;
|
||||
default:
|
||||
EFSYS_ASSERT(B_FALSE);
|
||||
}
|
||||
@ -1039,6 +1043,10 @@ efx_mae_match_spec_field_set(
|
||||
memcpy(mvp + descp->emmd_mask_offset,
|
||||
&dword, sizeof (dword));
|
||||
break;
|
||||
case 1:
|
||||
memcpy(mvp + descp->emmd_mask_offset,
|
||||
mask, 1);
|
||||
break;
|
||||
default:
|
||||
EFSYS_ASSERT(B_FALSE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user