mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mlxsw: reg: Rename the flexible action set length field
The MLXSW_REG_PXXX_FLEX_ACTION_SET_LEN is relevant for the multicast router registers too, so rename it to have a general name which is not bound to a specific register. Signed-off-by: Yotam Gigi <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
9cb3fa940e
commit
5872656551
1 changed files with 3 additions and 4 deletions
|
|
@ -2142,15 +2142,14 @@ MLXSW_REG_DEFINE(pefa, MLXSW_REG_PEFA_ID, MLXSW_REG_PEFA_LEN);
|
|||
*/
|
||||
MLXSW_ITEM32(reg, pefa, index, 0x00, 0, 24);
|
||||
|
||||
#define MLXSW_REG_PXXX_FLEX_ACTION_SET_LEN 0xA8
|
||||
#define MLXSW_REG_FLEX_ACTION_SET_LEN 0xA8
|
||||
|
||||
/* reg_pefa_flex_action_set
|
||||
* Action-set to perform when rule is matched.
|
||||
* Must be zero padded if action set is shorter.
|
||||
* Access: RW
|
||||
*/
|
||||
MLXSW_ITEM_BUF(reg, pefa, flex_action_set, 0x08,
|
||||
MLXSW_REG_PXXX_FLEX_ACTION_SET_LEN);
|
||||
MLXSW_ITEM_BUF(reg, pefa, flex_action_set, 0x08, MLXSW_REG_FLEX_ACTION_SET_LEN);
|
||||
|
||||
static inline void mlxsw_reg_pefa_pack(char *payload, u32 index,
|
||||
const char *flex_action_set)
|
||||
|
|
@ -2243,7 +2242,7 @@ MLXSW_ITEM_BUF(reg, ptce2, mask, 0x80,
|
|||
* Access: RW
|
||||
*/
|
||||
MLXSW_ITEM_BUF(reg, ptce2, flex_action_set, 0xE0,
|
||||
MLXSW_REG_PXXX_FLEX_ACTION_SET_LEN);
|
||||
MLXSW_REG_FLEX_ACTION_SET_LEN);
|
||||
|
||||
static inline void mlxsw_reg_ptce2_pack(char *payload, bool valid,
|
||||
enum mlxsw_reg_ptce2_op op,
|
||||
|
|
|
|||
Loading…
Reference in a new issue