mlxsw: reg: Introduce Flex2 key type for PTAR register
authorJiri Pirko <jiri@mellanox.com>
Sun, 8 Jul 2018 07:00:15 +0000 (10:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Jul 2018 08:05:19 +0000 (17:05 +0900)
commit45e0620d5eb15daa102e9212b92180adf2f4f0aa
tree3a24ba87cc5ac5d8ee6b69ac201ce6d849ede988
parentd4b0d20fec47c95a2bbd2c7d82dc72e59364faae
mlxsw: reg: Introduce Flex2 key type for PTAR register

Introduce Flex2 key type for PTAR register which is used in Spectrum-2.
Also, extend mlxsw_reg_ptar_pack() to set the value according to the
caller.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c