OSDN Git Service

mlxsw: reg: Increase 'port_num' field in PMTDB register
authorAmit Cohen <amcohen@nvidia.com>
Wed, 1 Dec 2021 08:12:35 +0000 (10:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Dec 2021 14:52:34 +0000 (14:52 +0000)
'port_num' field is used to indicate the local port value which can be
assigned to a module.

Increase the field from 8 bits to 10 bits in order to support more than
255 ports.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h

index 8614691..8d4395a 100644 (file)
@@ -5828,7 +5828,7 @@ MLXSW_ITEM32(reg, pmtdb, status, 0x00, 0, 4);
  * the module.
  * Access: RO
  */
-MLXSW_ITEM16_INDEXED(reg, pmtdb, port_num, 0x04, 0, 8, 0x02, 0x00, false);
+MLXSW_ITEM16_INDEXED(reg, pmtdb, port_num, 0x04, 0, 10, 0x02, 0x00, false);
 
 static inline void mlxsw_reg_pmtdb_pack(char *payload, u8 slot_index, u8 module,
                                        u8 ports_width, u8 num_ports)