mlxsw: reg: Increase size of MPAR register
authorIdo Schimmel <idosch@mellanox.com>
Wed, 30 Oct 2019 09:34:48 +0000 (11:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Oct 2019 19:07:05 +0000 (12:07 -0700)
In new firmware versions this register is extended with a sampling rate
for Spectrum-2 and future ASICs.

Increase the size of the register to ensure the field is initialized to
0 which means every packet is mirrored.

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

index adb63a266fc751effb1a1f7740bc6a023eb876b7..7f7f1b95290fcc1762f3709b5821e09b3c0c2738 100644 (file)
@@ -8680,7 +8680,7 @@ mlxsw_reg_mpat_eth_rspan_l3_ipv6_pack(char *payload, u8 ttl,
  * properties.
  */
 #define MLXSW_REG_MPAR_ID 0x901B
-#define MLXSW_REG_MPAR_LEN 0x08
+#define MLXSW_REG_MPAR_LEN 0x0C
 
 MLXSW_REG_DEFINE(mpar, MLXSW_REG_MPAR_ID, MLXSW_REG_MPAR_LEN);