|
@@ -3992,16 +3992,16 @@ MLXSW_ITEM32(reg, ritr, ipv4, 0x00, 29, 1);
|
|
|
MLXSW_ITEM32(reg, ritr, ipv6, 0x00, 28, 1);
|
|
|
|
|
|
enum mlxsw_reg_ritr_if_type {
|
|
|
+ /* VLAN interface. */
|
|
|
MLXSW_REG_RITR_VLAN_IF,
|
|
|
+ /* FID interface. */
|
|
|
MLXSW_REG_RITR_FID_IF,
|
|
|
+ /* Sub-port interface. */
|
|
|
MLXSW_REG_RITR_SP_IF,
|
|
|
};
|
|
|
|
|
|
/* reg_ritr_type
|
|
|
- * Router interface type.
|
|
|
- * 0 - VLAN interface.
|
|
|
- * 1 - FID interface.
|
|
|
- * 2 - Sub-port interface.
|
|
|
+ * Router interface type as per enum mlxsw_reg_ritr_if_type.
|
|
|
* Access: RW
|
|
|
*/
|
|
|
MLXSW_ITEM32(reg, ritr, type, 0x00, 23, 3);
|
|
@@ -4718,7 +4718,7 @@ MLXSW_ITEM32(reg, ralue, prefix_len, 0x08, 0, 8);
|
|
|
/* reg_ralue_dip*
|
|
|
* The prefix of the route or of the marker that the object of the LPM
|
|
|
* is compared with. The most significant bits of the dip are the prefix.
|
|
|
- * The list significant bits must be '0' if the prefix_len is smaller
|
|
|
+ * The least significant bits must be '0' if the prefix_len is smaller
|
|
|
* than 128 for IPv6 or smaller than 32 for IPv4.
|
|
|
* IPv4 address uses bits dip[31:0] and bits dip[127:32] are reserved.
|
|
|
* Access: Index
|
|
@@ -4813,7 +4813,7 @@ MLXSW_ITEM32(reg, ralue, ecmp_size, 0x28, 0, 13);
|
|
|
*/
|
|
|
MLXSW_ITEM32(reg, ralue, local_erif, 0x24, 0, 16);
|
|
|
|
|
|
-/* reg_ralue_v
|
|
|
+/* reg_ralue_ip2me_v
|
|
|
* Valid bit for the tunnel_ptr field.
|
|
|
* If valid = 0 then trap to CPU as IP2ME trap ID.
|
|
|
* If valid = 1 and the packet format allows NVE or IPinIP tunnel
|
|
@@ -4823,15 +4823,15 @@ MLXSW_ITEM32(reg, ralue, local_erif, 0x24, 0, 16);
|
|
|
* Only relevant in case of IP2ME action.
|
|
|
* Access: RW
|
|
|
*/
|
|
|
-MLXSW_ITEM32(reg, ralue, v, 0x24, 31, 1);
|
|
|
+MLXSW_ITEM32(reg, ralue, ip2me_v, 0x24, 31, 1);
|
|
|
|
|
|
-/* reg_ralue_tunnel_ptr
|
|
|
+/* reg_ralue_ip2me_tunnel_ptr
|
|
|
* Tunnel Pointer for NVE or IPinIP tunnel decapsulation.
|
|
|
* For Spectrum, pointer to KVD Linear.
|
|
|
* Only relevant in case of IP2ME action.
|
|
|
* Access: RW
|
|
|
*/
|
|
|
-MLXSW_ITEM32(reg, ralue, tunnel_ptr, 0x24, 0, 24);
|
|
|
+MLXSW_ITEM32(reg, ralue, ip2me_tunnel_ptr, 0x24, 0, 24);
|
|
|
|
|
|
static inline void mlxsw_reg_ralue_pack(char *payload,
|
|
|
enum mlxsw_reg_ralxx_protocol protocol,
|