27f15d40e1
- Why I did it 1. Update Mellanox HW-MGMT package to newer version V.7.0030.1011 2. Replace the SONiC PMON Thermal control algorithm with the one inside the HW-MGMT package on all Nvidia platforms 3. Support Spectrum-4 systems - How I did it 1. Update the HW-MGMT package version number and submodule pointer 2. Remove the thermal control algorithm implementation from Mellanox platform API 3. Revise the patch to HW-MGMT package which will disable HW-MGMT from running on SIMX 4. Update the downstream kernel patch list Signed-off-by: Kebo Liu <kebol@nvidia.com>
772 lines
30 KiB
Diff
772 lines
30 KiB
Diff
From 3a6322534307154e067d0596f52f287ecd0f599e Mon Sep 17 00:00:00 2001
|
|
From: Ciju Rajan K <crajank@nvidia.com>
|
|
Date: Thu, 17 Aug 2023 10:00:25 +0000
|
|
Subject: Revert "mlxsw: Use u16 for local_port field instead of u8"
|
|
|
|
This reverts commit 0639995c2017338c563db36f631e94d19ae45c74.
|
|
---
|
|
drivers/net/ethernet/mellanox/mlxsw/core.c | 32 ++++----
|
|
drivers/net/ethernet/mellanox/mlxsw/core.h | 34 ++++-----
|
|
drivers/net/ethernet/mellanox/mlxsw/minimal.c | 6 +-
|
|
drivers/net/ethernet/mellanox/mlxsw/reg.h | 106 +++++++++++++-------------
|
|
4 files changed, 89 insertions(+), 89 deletions(-)
|
|
|
|
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.c b/drivers/net/ethernet/mellanox/mlxsw/core.c
|
|
index 631c19222fc4..7938bad70e37 100644
|
|
--- a/drivers/net/ethernet/mellanox/mlxsw/core.c
|
|
+++ b/drivers/net/ethernet/mellanox/mlxsw/core.c
|
|
@@ -47,7 +47,7 @@ static struct workqueue_struct *mlxsw_owq;
|
|
struct mlxsw_core_port {
|
|
struct devlink_port devlink_port;
|
|
void *port_driver_priv;
|
|
- u16 local_port;
|
|
+ u8 local_port;
|
|
};
|
|
|
|
void *mlxsw_core_port_driver_priv(struct mlxsw_core_port *mlxsw_core_port)
|
|
@@ -669,7 +669,7 @@ static void mlxsw_emad_process_response(struct mlxsw_core *mlxsw_core,
|
|
}
|
|
|
|
/* called with rcu read lock held */
|
|
-static void mlxsw_emad_rx_listener_func(struct sk_buff *skb, u16 local_port,
|
|
+static void mlxsw_emad_rx_listener_func(struct sk_buff *skb, u8 local_port,
|
|
void *priv)
|
|
{
|
|
struct mlxsw_core *mlxsw_core = priv;
|
|
@@ -2094,7 +2094,7 @@ int mlxsw_core_skb_transmit(struct mlxsw_core *mlxsw_core, struct sk_buff *skb,
|
|
EXPORT_SYMBOL(mlxsw_core_skb_transmit);
|
|
|
|
void mlxsw_core_ptp_transmitted(struct mlxsw_core *mlxsw_core,
|
|
- struct sk_buff *skb, u16 local_port)
|
|
+ struct sk_buff *skb, u8 local_port)
|
|
{
|
|
if (mlxsw_core->driver->ptp_transmitted)
|
|
mlxsw_core->driver->ptp_transmitted(mlxsw_core, skb,
|
|
@@ -2172,7 +2172,7 @@ mlxsw_core_rx_listener_state_set(struct mlxsw_core *mlxsw_core,
|
|
rxl_item->enabled = enabled;
|
|
}
|
|
|
|
-static void mlxsw_core_event_listener_func(struct sk_buff *skb, u16 local_port,
|
|
+static void mlxsw_core_event_listener_func(struct sk_buff *skb, u8 local_port,
|
|
void *priv)
|
|
{
|
|
struct mlxsw_event_listener_item *event_listener_item = priv;
|
|
@@ -2599,7 +2599,7 @@ void mlxsw_core_skb_receive(struct mlxsw_core *mlxsw_core, struct sk_buff *skb,
|
|
{
|
|
struct mlxsw_rx_listener_item *rxl_item;
|
|
const struct mlxsw_rx_listener *rxl;
|
|
- u16 local_port;
|
|
+ u8 local_port;
|
|
bool found = false;
|
|
|
|
if (rx_info->is_lag) {
|
|
@@ -2657,7 +2657,7 @@ static int mlxsw_core_lag_mapping_index(struct mlxsw_core *mlxsw_core,
|
|
}
|
|
|
|
void mlxsw_core_lag_mapping_set(struct mlxsw_core *mlxsw_core,
|
|
- u16 lag_id, u8 port_index, u16 local_port)
|
|
+ u16 lag_id, u8 port_index, u8 local_port)
|
|
{
|
|
int index = mlxsw_core_lag_mapping_index(mlxsw_core,
|
|
lag_id, port_index);
|
|
@@ -2677,7 +2677,7 @@ u8 mlxsw_core_lag_mapping_get(struct mlxsw_core *mlxsw_core,
|
|
EXPORT_SYMBOL(mlxsw_core_lag_mapping_get);
|
|
|
|
void mlxsw_core_lag_mapping_clear(struct mlxsw_core *mlxsw_core,
|
|
- u16 lag_id, u16 local_port)
|
|
+ u16 lag_id, u8 local_port)
|
|
{
|
|
int i;
|
|
|
|
@@ -2705,7 +2705,7 @@ u64 mlxsw_core_res_get(struct mlxsw_core *mlxsw_core,
|
|
}
|
|
EXPORT_SYMBOL(mlxsw_core_res_get);
|
|
|
|
-static int __mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+static int __mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
enum devlink_port_flavour flavour,
|
|
u32 port_number, bool split,
|
|
u32 split_port_subnumber,
|
|
@@ -2736,7 +2736,7 @@ static int __mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
return err;
|
|
}
|
|
|
|
-static void __mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u16 local_port)
|
|
+static void __mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u8 local_port)
|
|
{
|
|
struct mlxsw_core_port *mlxsw_core_port =
|
|
&mlxsw_core->ports[local_port];
|
|
@@ -2746,7 +2746,7 @@ static void __mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u16 local_port
|
|
memset(mlxsw_core_port, 0, sizeof(*mlxsw_core_port));
|
|
}
|
|
|
|
-int mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+int mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
u32 port_number, bool split,
|
|
u32 split_port_subnumber,
|
|
bool splittable, u32 lanes,
|
|
@@ -2761,7 +2761,7 @@ int mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
}
|
|
EXPORT_SYMBOL(mlxsw_core_port_init);
|
|
|
|
-void mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u16 local_port)
|
|
+void mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u8 local_port)
|
|
{
|
|
__mlxsw_core_port_fini(mlxsw_core, local_port);
|
|
}
|
|
@@ -2794,7 +2794,7 @@ void mlxsw_core_cpu_port_fini(struct mlxsw_core *mlxsw_core)
|
|
}
|
|
EXPORT_SYMBOL(mlxsw_core_cpu_port_fini);
|
|
|
|
-void mlxsw_core_port_eth_set(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+void mlxsw_core_port_eth_set(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
void *port_driver_priv, struct net_device *dev)
|
|
{
|
|
struct mlxsw_core_port *mlxsw_core_port =
|
|
@@ -2806,7 +2806,7 @@ void mlxsw_core_port_eth_set(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
}
|
|
EXPORT_SYMBOL(mlxsw_core_port_eth_set);
|
|
|
|
-void mlxsw_core_port_ib_set(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+void mlxsw_core_port_ib_set(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
void *port_driver_priv)
|
|
{
|
|
struct mlxsw_core_port *mlxsw_core_port =
|
|
@@ -2818,7 +2818,7 @@ void mlxsw_core_port_ib_set(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
}
|
|
EXPORT_SYMBOL(mlxsw_core_port_ib_set);
|
|
|
|
-void mlxsw_core_port_clear(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+void mlxsw_core_port_clear(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
void *port_driver_priv)
|
|
{
|
|
struct mlxsw_core_port *mlxsw_core_port =
|
|
@@ -2831,7 +2831,7 @@ void mlxsw_core_port_clear(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
EXPORT_SYMBOL(mlxsw_core_port_clear);
|
|
|
|
enum devlink_port_type mlxsw_core_port_type_get(struct mlxsw_core *mlxsw_core,
|
|
- u16 local_port)
|
|
+ u8 local_port)
|
|
{
|
|
struct mlxsw_core_port *mlxsw_core_port =
|
|
&mlxsw_core->ports[local_port];
|
|
@@ -2844,7 +2844,7 @@ EXPORT_SYMBOL(mlxsw_core_port_type_get);
|
|
|
|
struct devlink_port *
|
|
mlxsw_core_port_devlink_port_get(struct mlxsw_core *mlxsw_core,
|
|
- u16 local_port)
|
|
+ u8 local_port)
|
|
{
|
|
struct mlxsw_core_port *mlxsw_core_port =
|
|
&mlxsw_core->ports[local_port];
|
|
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.h b/drivers/net/ethernet/mellanox/mlxsw/core.h
|
|
index 1fc783174292..56efb8e48022 100644
|
|
--- a/drivers/net/ethernet/mellanox/mlxsw/core.h
|
|
+++ b/drivers/net/ethernet/mellanox/mlxsw/core.h
|
|
@@ -49,7 +49,7 @@ int mlxsw_core_bus_device_register(const struct mlxsw_bus_info *mlxsw_bus_info,
|
|
void mlxsw_core_bus_device_unregister(struct mlxsw_core *mlxsw_core, bool reload);
|
|
|
|
struct mlxsw_tx_info {
|
|
- u16 local_port;
|
|
+ u8 local_port;
|
|
bool is_emad;
|
|
};
|
|
|
|
@@ -58,11 +58,11 @@ bool mlxsw_core_skb_transmit_busy(struct mlxsw_core *mlxsw_core,
|
|
int mlxsw_core_skb_transmit(struct mlxsw_core *mlxsw_core, struct sk_buff *skb,
|
|
const struct mlxsw_tx_info *tx_info);
|
|
void mlxsw_core_ptp_transmitted(struct mlxsw_core *mlxsw_core,
|
|
- struct sk_buff *skb, u16 local_port);
|
|
+ struct sk_buff *skb, u8 local_port);
|
|
|
|
struct mlxsw_rx_listener {
|
|
- void (*func)(struct sk_buff *skb, u16 local_port, void *priv);
|
|
- u16 local_port;
|
|
+ void (*func)(struct sk_buff *skb, u8 local_port, void *priv);
|
|
+ u8 local_port;
|
|
u8 mirror_reason;
|
|
u16 trap_id;
|
|
};
|
|
@@ -194,35 +194,35 @@ void mlxsw_core_skb_receive(struct mlxsw_core *mlxsw_core, struct sk_buff *skb,
|
|
struct mlxsw_rx_info *rx_info);
|
|
|
|
void mlxsw_core_lag_mapping_set(struct mlxsw_core *mlxsw_core,
|
|
- u16 lag_id, u8 port_index, u16 local_port);
|
|
+ u16 lag_id, u8 port_index, u8 local_port);
|
|
u8 mlxsw_core_lag_mapping_get(struct mlxsw_core *mlxsw_core,
|
|
u16 lag_id, u8 port_index);
|
|
void mlxsw_core_lag_mapping_clear(struct mlxsw_core *mlxsw_core,
|
|
- u16 lag_id, u16 local_port);
|
|
+ u16 lag_id, u8 local_port);
|
|
|
|
void *mlxsw_core_port_driver_priv(struct mlxsw_core_port *mlxsw_core_port);
|
|
-int mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+int mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
u32 port_number, bool split, u32 split_port_subnumber,
|
|
bool splittable, u32 lanes,
|
|
const unsigned char *switch_id,
|
|
unsigned char switch_id_len);
|
|
-void mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u16 local_port);
|
|
+void mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u8 local_port);
|
|
int mlxsw_core_cpu_port_init(struct mlxsw_core *mlxsw_core,
|
|
void *port_driver_priv,
|
|
const unsigned char *switch_id,
|
|
unsigned char switch_id_len);
|
|
void mlxsw_core_cpu_port_fini(struct mlxsw_core *mlxsw_core);
|
|
-void mlxsw_core_port_eth_set(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+void mlxsw_core_port_eth_set(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
void *port_driver_priv, struct net_device *dev);
|
|
-void mlxsw_core_port_ib_set(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+void mlxsw_core_port_ib_set(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
void *port_driver_priv);
|
|
-void mlxsw_core_port_clear(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+void mlxsw_core_port_clear(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
void *port_driver_priv);
|
|
enum devlink_port_type mlxsw_core_port_type_get(struct mlxsw_core *mlxsw_core,
|
|
- u16 local_port);
|
|
+ u8 local_port);
|
|
struct devlink_port *
|
|
mlxsw_core_port_devlink_port_get(struct mlxsw_core *mlxsw_core,
|
|
- u16 local_port);
|
|
+ u8 local_port);
|
|
struct mlxsw_env *mlxsw_core_env(const struct mlxsw_core *mlxsw_core);
|
|
int mlxsw_core_module_max_width(struct mlxsw_core *mlxsw_core, u8 module);
|
|
|
|
@@ -290,11 +290,11 @@ struct mlxsw_driver {
|
|
struct netlink_ext_ack *extack);
|
|
void (*fini)(struct mlxsw_core *mlxsw_core);
|
|
int (*basic_trap_groups_set)(struct mlxsw_core *mlxsw_core);
|
|
- int (*port_type_set)(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+ int (*port_type_set)(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
enum devlink_port_type new_type);
|
|
- int (*port_split)(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+ int (*port_split)(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
unsigned int count, struct netlink_ext_ack *extack);
|
|
- int (*port_unsplit)(struct mlxsw_core *mlxsw_core, u16 local_port,
|
|
+ int (*port_unsplit)(struct mlxsw_core *mlxsw_core, u8 local_port,
|
|
struct netlink_ext_ack *extack);
|
|
int (*sb_pool_get)(struct mlxsw_core *mlxsw_core,
|
|
unsigned int sb_index, u16 pool_index,
|
|
@@ -368,7 +368,7 @@ struct mlxsw_driver {
|
|
* is responsible for freeing the passed-in SKB.
|
|
*/
|
|
void (*ptp_transmitted)(struct mlxsw_core *mlxsw_core,
|
|
- struct sk_buff *skb, u16 local_port);
|
|
+ struct sk_buff *skb, u8 local_port);
|
|
|
|
u8 txhdr_len;
|
|
const struct mlxsw_config_profile *profile;
|
|
diff --git a/drivers/net/ethernet/mellanox/mlxsw/minimal.c b/drivers/net/ethernet/mellanox/mlxsw/minimal.c
|
|
index 1ddd11320b99..3d07c2dcf08d 100644
|
|
--- a/drivers/net/ethernet/mellanox/mlxsw/minimal.c
|
|
+++ b/drivers/net/ethernet/mellanox/mlxsw/minimal.c
|
|
@@ -38,7 +38,7 @@ struct mlxsw_m {
|
|
struct mlxsw_m_port {
|
|
struct net_device *dev;
|
|
struct mlxsw_m *mlxsw_m;
|
|
- u16 local_port;
|
|
+ u8 local_port;
|
|
u8 module;
|
|
};
|
|
|
|
@@ -201,7 +201,7 @@ mlxsw_m_port_dev_addr_get(struct mlxsw_m_port *mlxsw_m_port)
|
|
}
|
|
|
|
static int
|
|
-mlxsw_m_port_create(struct mlxsw_m *mlxsw_m, u16 local_port, u8 module)
|
|
+mlxsw_m_port_create(struct mlxsw_m *mlxsw_m, u8 local_port, u8 module)
|
|
{
|
|
struct mlxsw_m_port *mlxsw_m_port;
|
|
struct net_device *dev;
|
|
@@ -264,7 +264,7 @@ mlxsw_m_port_create(struct mlxsw_m *mlxsw_m, u16 local_port, u8 module)
|
|
return err;
|
|
}
|
|
|
|
-static void mlxsw_m_port_remove(struct mlxsw_m *mlxsw_m, u16 local_port)
|
|
+static void mlxsw_m_port_remove(struct mlxsw_m *mlxsw_m, u8 local_port)
|
|
{
|
|
struct mlxsw_m_port *mlxsw_m_port = mlxsw_m->ports[local_port];
|
|
|
|
diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h
|
|
index 2ec9ec6078e2..a9119451d999 100644
|
|
--- a/drivers/net/ethernet/mellanox/mlxsw/reg.h
|
|
+++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h
|
|
@@ -161,7 +161,7 @@ MLXSW_ITEM32(reg, sspr, sub_port, 0x00, 8, 8);
|
|
*/
|
|
MLXSW_ITEM32(reg, sspr, system_port, 0x04, 0, 16);
|
|
|
|
-static inline void mlxsw_reg_sspr_pack(char *payload, u16 local_port)
|
|
+static inline void mlxsw_reg_sspr_pack(char *payload, u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(sspr, payload);
|
|
mlxsw_reg_sspr_m_set(payload, 1);
|
|
@@ -407,7 +407,7 @@ static inline void mlxsw_reg_sfd_uc_pack(char *payload, int rec_index,
|
|
enum mlxsw_reg_sfd_rec_policy policy,
|
|
const char *mac, u16 fid_vid,
|
|
enum mlxsw_reg_sfd_rec_action action,
|
|
- u16 local_port)
|
|
+ u8 local_port)
|
|
{
|
|
mlxsw_reg_sfd_rec_pack(payload, rec_index,
|
|
MLXSW_REG_SFD_REC_TYPE_UNICAST, mac, action);
|
|
@@ -419,7 +419,7 @@ static inline void mlxsw_reg_sfd_uc_pack(char *payload, int rec_index,
|
|
|
|
static inline void mlxsw_reg_sfd_uc_unpack(char *payload, int rec_index,
|
|
char *mac, u16 *p_fid_vid,
|
|
- u16 *p_local_port)
|
|
+ u8 *p_local_port)
|
|
{
|
|
mlxsw_reg_sfd_rec_mac_memcpy_from(payload, rec_index, mac);
|
|
*p_fid_vid = mlxsw_reg_sfd_uc_fid_vid_get(payload, rec_index);
|
|
@@ -685,7 +685,7 @@ MLXSW_ITEM32_INDEXED(reg, sfn, mac_system_port, MLXSW_REG_SFN_BASE_LEN, 0, 16,
|
|
|
|
static inline void mlxsw_reg_sfn_mac_unpack(char *payload, int rec_index,
|
|
char *mac, u16 *p_vid,
|
|
- u16 *p_local_port)
|
|
+ u8 *p_local_port)
|
|
{
|
|
mlxsw_reg_sfn_rec_mac_memcpy_from(payload, rec_index, mac);
|
|
*p_vid = mlxsw_reg_sfn_mac_fid_get(payload, rec_index);
|
|
@@ -800,7 +800,7 @@ enum mlxsw_reg_spms_state {
|
|
*/
|
|
MLXSW_ITEM_BIT_ARRAY(reg, spms, state, 0x04, 0x400, 2);
|
|
|
|
-static inline void mlxsw_reg_spms_pack(char *payload, u16 local_port)
|
|
+static inline void mlxsw_reg_spms_pack(char *payload, u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(spms, payload);
|
|
mlxsw_reg_spms_local_port_set(payload, local_port);
|
|
@@ -840,7 +840,7 @@ MLXSW_ITEM32(reg, spvid, sub_port, 0x00, 8, 8);
|
|
*/
|
|
MLXSW_ITEM32(reg, spvid, pvid, 0x04, 0, 12);
|
|
|
|
-static inline void mlxsw_reg_spvid_pack(char *payload, u16 local_port, u16 pvid)
|
|
+static inline void mlxsw_reg_spvid_pack(char *payload, u8 local_port, u16 pvid)
|
|
{
|
|
MLXSW_REG_ZERO(spvid, payload);
|
|
mlxsw_reg_spvid_local_port_set(payload, local_port);
|
|
@@ -929,7 +929,7 @@ MLXSW_ITEM32_INDEXED(reg, spvm, rec_vid,
|
|
MLXSW_REG_SPVM_BASE_LEN, 0, 12,
|
|
MLXSW_REG_SPVM_REC_LEN, 0, false);
|
|
|
|
-static inline void mlxsw_reg_spvm_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_spvm_pack(char *payload, u8 local_port,
|
|
u16 vid_begin, u16 vid_end,
|
|
bool is_member, bool untagged)
|
|
{
|
|
@@ -991,7 +991,7 @@ MLXSW_ITEM32(reg, spaft, allow_prio_tagged, 0x04, 30, 1);
|
|
*/
|
|
MLXSW_ITEM32(reg, spaft, allow_tagged, 0x04, 29, 1);
|
|
|
|
-static inline void mlxsw_reg_spaft_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_spaft_pack(char *payload, u8 local_port,
|
|
bool allow_untagged)
|
|
{
|
|
MLXSW_REG_ZERO(spaft, payload);
|
|
@@ -1317,7 +1317,7 @@ MLXSW_ITEM32(reg, sldr, num_ports, 0x04, 24, 8);
|
|
MLXSW_ITEM32_INDEXED(reg, sldr, system_port, 0x08, 0, 16, 4, 0, false);
|
|
|
|
static inline void mlxsw_reg_sldr_lag_add_port_pack(char *payload, u8 lag_id,
|
|
- u16 local_port)
|
|
+ u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(sldr, payload);
|
|
mlxsw_reg_sldr_op_set(payload, MLXSW_REG_SLDR_OP_LAG_ADD_PORT_LIST);
|
|
@@ -1327,7 +1327,7 @@ static inline void mlxsw_reg_sldr_lag_add_port_pack(char *payload, u8 lag_id,
|
|
}
|
|
|
|
static inline void mlxsw_reg_sldr_lag_remove_port_pack(char *payload, u8 lag_id,
|
|
- u16 local_port)
|
|
+ u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(sldr, payload);
|
|
mlxsw_reg_sldr_op_set(payload, MLXSW_REG_SLDR_OP_LAG_REMOVE_PORT_LIST);
|
|
@@ -1501,7 +1501,7 @@ MLXSW_ITEM32(reg, slcor, lag_id, 0x00, 0, 10);
|
|
MLXSW_ITEM32(reg, slcor, port_index, 0x04, 0, 10);
|
|
|
|
static inline void mlxsw_reg_slcor_pack(char *payload,
|
|
- u16 local_port, u16 lag_id,
|
|
+ u8 local_port, u16 lag_id,
|
|
enum mlxsw_reg_slcor_col col)
|
|
{
|
|
MLXSW_REG_ZERO(slcor, payload);
|
|
@@ -1511,7 +1511,7 @@ static inline void mlxsw_reg_slcor_pack(char *payload,
|
|
}
|
|
|
|
static inline void mlxsw_reg_slcor_port_add_pack(char *payload,
|
|
- u16 local_port, u16 lag_id,
|
|
+ u8 local_port, u16 lag_id,
|
|
u8 port_index)
|
|
{
|
|
mlxsw_reg_slcor_pack(payload, local_port, lag_id,
|
|
@@ -1520,21 +1520,21 @@ static inline void mlxsw_reg_slcor_port_add_pack(char *payload,
|
|
}
|
|
|
|
static inline void mlxsw_reg_slcor_port_remove_pack(char *payload,
|
|
- u16 local_port, u16 lag_id)
|
|
+ u8 local_port, u16 lag_id)
|
|
{
|
|
mlxsw_reg_slcor_pack(payload, local_port, lag_id,
|
|
MLXSW_REG_SLCOR_COL_LAG_REMOVE_PORT);
|
|
}
|
|
|
|
static inline void mlxsw_reg_slcor_col_enable_pack(char *payload,
|
|
- u16 local_port, u16 lag_id)
|
|
+ u8 local_port, u16 lag_id)
|
|
{
|
|
mlxsw_reg_slcor_pack(payload, local_port, lag_id,
|
|
MLXSW_REG_SLCOR_COL_LAG_COLLECTOR_ENABLED);
|
|
}
|
|
|
|
static inline void mlxsw_reg_slcor_col_disable_pack(char *payload,
|
|
- u16 local_port, u16 lag_id)
|
|
+ u8 local_port, u16 lag_id)
|
|
{
|
|
mlxsw_reg_slcor_pack(payload, local_port, lag_id,
|
|
MLXSW_REG_SLCOR_COL_LAG_COLLECTOR_ENABLED);
|
|
@@ -1581,7 +1581,7 @@ enum mlxsw_reg_spmlr_learn_mode {
|
|
*/
|
|
MLXSW_ITEM32(reg, spmlr, learn_mode, 0x04, 30, 2);
|
|
|
|
-static inline void mlxsw_reg_spmlr_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_spmlr_pack(char *payload, u8 local_port,
|
|
enum mlxsw_reg_spmlr_learn_mode mode)
|
|
{
|
|
MLXSW_REG_ZERO(spmlr, payload);
|
|
@@ -1666,7 +1666,7 @@ MLXSW_ITEM32(reg, svfa, counter_set_type, 0x08, 24, 8);
|
|
*/
|
|
MLXSW_ITEM32(reg, svfa, counter_index, 0x08, 0, 24);
|
|
|
|
-static inline void mlxsw_reg_svfa_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_svfa_pack(char *payload, u8 local_port,
|
|
enum mlxsw_reg_svfa_mt mt, bool valid,
|
|
u16 fid, u16 vid)
|
|
{
|
|
@@ -1705,7 +1705,7 @@ MLXSW_ITEM32(reg, svpe, local_port, 0x00, 16, 8);
|
|
*/
|
|
MLXSW_ITEM32(reg, svpe, vp_en, 0x00, 8, 1);
|
|
|
|
-static inline void mlxsw_reg_svpe_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_svpe_pack(char *payload, u8 local_port,
|
|
bool enable)
|
|
{
|
|
MLXSW_REG_ZERO(svpe, payload);
|
|
@@ -1838,7 +1838,7 @@ MLXSW_ITEM32_INDEXED(reg, spvmlr, rec_learn_enable, MLXSW_REG_SPVMLR_BASE_LEN,
|
|
MLXSW_ITEM32_INDEXED(reg, spvmlr, rec_vid, MLXSW_REG_SPVMLR_BASE_LEN, 0, 12,
|
|
MLXSW_REG_SPVMLR_REC_LEN, 0x00, false);
|
|
|
|
-static inline void mlxsw_reg_spvmlr_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_spvmlr_pack(char *payload, u8 local_port,
|
|
u16 vid_begin, u16 vid_end,
|
|
bool learn_enable)
|
|
{
|
|
@@ -1907,7 +1907,7 @@ MLXSW_ITEM32_INDEXED(reg, cwtp, profile_max, MLXSW_REG_CWTP_BASE_LEN,
|
|
#define MLXSW_REG_CWTP_MAX_PROFILE 2
|
|
#define MLXSW_REG_CWTP_DEFAULT_PROFILE 1
|
|
|
|
-static inline void mlxsw_reg_cwtp_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_cwtp_pack(char *payload, u8 local_port,
|
|
u8 traffic_class)
|
|
{
|
|
int i;
|
|
@@ -2025,7 +2025,7 @@ MLXSW_ITEM32(reg, cwtpm, ntcp_r, 64, 0, 2);
|
|
|
|
#define MLXSW_REG_CWTPM_RESET_PROFILE 0
|
|
|
|
-static inline void mlxsw_reg_cwtpm_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_cwtpm_pack(char *payload, u8 local_port,
|
|
u8 traffic_class, u8 profile,
|
|
bool wred, bool ecn)
|
|
{
|
|
@@ -2116,7 +2116,7 @@ MLXSW_ITEM32(reg, ppbt, acl_info, 0x10, 0, 16);
|
|
|
|
static inline void mlxsw_reg_ppbt_pack(char *payload, enum mlxsw_reg_pxbt_e e,
|
|
enum mlxsw_reg_pxbt_op op,
|
|
- u16 local_port, u16 acl_info)
|
|
+ u8 local_port, u16 acl_info)
|
|
{
|
|
MLXSW_REG_ZERO(ppbt, payload);
|
|
mlxsw_reg_ppbt_e_set(payload, e);
|
|
@@ -3260,7 +3260,7 @@ enum mlxsw_reg_qpts_trust_state {
|
|
*/
|
|
MLXSW_ITEM32(reg, qpts, trust_state, 0x04, 0, 3);
|
|
|
|
-static inline void mlxsw_reg_qpts_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_qpts_pack(char *payload, u8 local_port,
|
|
enum mlxsw_reg_qpts_trust_state ts)
|
|
{
|
|
MLXSW_REG_ZERO(qpts, payload);
|
|
@@ -3476,7 +3476,7 @@ MLXSW_ITEM32(reg, qtct, switch_prio, 0x00, 0, 4);
|
|
*/
|
|
MLXSW_ITEM32(reg, qtct, tclass, 0x04, 0, 4);
|
|
|
|
-static inline void mlxsw_reg_qtct_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_qtct_pack(char *payload, u8 local_port,
|
|
u8 switch_prio, u8 tclass)
|
|
{
|
|
MLXSW_REG_ZERO(qtct, payload);
|
|
@@ -3643,7 +3643,7 @@ MLXSW_ITEM32(reg, qeec, max_shaper_bs, 0x1C, 0, 6);
|
|
#define MLXSW_REG_QEEC_LOWEST_SHAPER_BS_SP2 11
|
|
#define MLXSW_REG_QEEC_LOWEST_SHAPER_BS_SP3 11
|
|
|
|
-static inline void mlxsw_reg_qeec_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_qeec_pack(char *payload, u8 local_port,
|
|
enum mlxsw_reg_qeec_hr hr, u8 index,
|
|
u8 next_index)
|
|
{
|
|
@@ -3654,7 +3654,7 @@ static inline void mlxsw_reg_qeec_pack(char *payload, u16 local_port,
|
|
mlxsw_reg_qeec_next_element_index_set(payload, next_index);
|
|
}
|
|
|
|
-static inline void mlxsw_reg_qeec_ptps_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_qeec_ptps_pack(char *payload, u8 local_port,
|
|
bool ptps)
|
|
{
|
|
MLXSW_REG_ZERO(qeec, payload);
|
|
@@ -3692,7 +3692,7 @@ MLXSW_ITEM32(reg, qrwe, dscp, 0x04, 1, 1);
|
|
*/
|
|
MLXSW_ITEM32(reg, qrwe, pcp, 0x04, 0, 1);
|
|
|
|
-static inline void mlxsw_reg_qrwe_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_qrwe_pack(char *payload, u8 local_port,
|
|
bool rewrite_pcp, bool rewrite_dscp)
|
|
{
|
|
MLXSW_REG_ZERO(qrwe, payload);
|
|
@@ -3772,7 +3772,7 @@ MLXSW_ITEM32_INDEXED(reg, qpdsm, prio_entry_color2_dscp,
|
|
MLXSW_REG_QPDSM_BASE_LEN, 8, 6,
|
|
MLXSW_REG_QPDSM_PRIO_ENTRY_REC_LEN, 0x00, false);
|
|
|
|
-static inline void mlxsw_reg_qpdsm_pack(char *payload, u16 local_port)
|
|
+static inline void mlxsw_reg_qpdsm_pack(char *payload, u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(qpdsm, payload);
|
|
mlxsw_reg_qpdsm_local_port_set(payload, local_port);
|
|
@@ -3813,7 +3813,7 @@ MLXSW_ITEM32(reg, qpdp, local_port, 0x00, 16, 8);
|
|
*/
|
|
MLXSW_ITEM32(reg, qpdp, switch_prio, 0x04, 0, 4);
|
|
|
|
-static inline void mlxsw_reg_qpdp_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_qpdp_pack(char *payload, u8 local_port,
|
|
u8 switch_prio)
|
|
{
|
|
MLXSW_REG_ZERO(qpdp, payload);
|
|
@@ -3859,7 +3859,7 @@ MLXSW_ITEM16_INDEXED(reg, qpdpm, dscp_entry_prio,
|
|
MLXSW_REG_QPDPM_BASE_LEN, 0, 4,
|
|
MLXSW_REG_QPDPM_DSCP_ENTRY_REC_LEN, 0x00, false);
|
|
|
|
-static inline void mlxsw_reg_qpdpm_pack(char *payload, u16 local_port)
|
|
+static inline void mlxsw_reg_qpdpm_pack(char *payload, u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(qpdpm, payload);
|
|
mlxsw_reg_qpdpm_local_port_set(payload, local_port);
|
|
@@ -3901,7 +3901,7 @@ MLXSW_ITEM32(reg, qtctm, local_port, 0x00, 16, 8);
|
|
MLXSW_ITEM32(reg, qtctm, mc, 0x04, 0, 1);
|
|
|
|
static inline void
|
|
-mlxsw_reg_qtctm_pack(char *payload, u16 local_port, bool mc)
|
|
+mlxsw_reg_qtctm_pack(char *payload, u8 local_port, bool mc)
|
|
{
|
|
MLXSW_REG_ZERO(qtctm, payload);
|
|
mlxsw_reg_qtctm_local_port_set(payload, local_port);
|
|
@@ -4065,7 +4065,7 @@ MLXSW_ITEM32_INDEXED(reg, pmlp, tx_lane, 0x04, 16, 4, 0x04, 0x00, false);
|
|
*/
|
|
MLXSW_ITEM32_INDEXED(reg, pmlp, rx_lane, 0x04, 24, 4, 0x04, 0x00, false);
|
|
|
|
-static inline void mlxsw_reg_pmlp_pack(char *payload, u16 local_port)
|
|
+static inline void mlxsw_reg_pmlp_pack(char *payload, u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(pmlp, payload);
|
|
mlxsw_reg_pmlp_local_port_set(payload, local_port);
|
|
@@ -4112,7 +4112,7 @@ MLXSW_ITEM32(reg, pmtu, admin_mtu, 0x08, 16, 16);
|
|
*/
|
|
MLXSW_ITEM32(reg, pmtu, oper_mtu, 0x0C, 16, 16);
|
|
|
|
-static inline void mlxsw_reg_pmtu_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_pmtu_pack(char *payload, u8 local_port,
|
|
u16 new_mtu)
|
|
{
|
|
MLXSW_REG_ZERO(pmtu, payload);
|
|
@@ -4306,7 +4306,7 @@ enum mlxsw_reg_ptys_connector_type {
|
|
*/
|
|
MLXSW_ITEM32(reg, ptys, connector_type, 0x2C, 0, 4);
|
|
|
|
-static inline void mlxsw_reg_ptys_eth_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_ptys_eth_pack(char *payload, u8 local_port,
|
|
u32 proto_admin, bool autoneg)
|
|
{
|
|
MLXSW_REG_ZERO(ptys, payload);
|
|
@@ -4316,7 +4316,7 @@ static inline void mlxsw_reg_ptys_eth_pack(char *payload, u16 local_port,
|
|
mlxsw_reg_ptys_an_disable_admin_set(payload, !autoneg);
|
|
}
|
|
|
|
-static inline void mlxsw_reg_ptys_ext_eth_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_ptys_ext_eth_pack(char *payload, u8 local_port,
|
|
u32 proto_admin, bool autoneg)
|
|
{
|
|
MLXSW_REG_ZERO(ptys, payload);
|
|
@@ -4358,7 +4358,7 @@ static inline void mlxsw_reg_ptys_ext_eth_unpack(char *payload,
|
|
mlxsw_reg_ptys_ext_eth_proto_oper_get(payload);
|
|
}
|
|
|
|
-static inline void mlxsw_reg_ptys_ib_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_ptys_ib_pack(char *payload, u8 local_port,
|
|
u16 proto_admin, u16 link_width)
|
|
{
|
|
MLXSW_REG_ZERO(ptys, payload);
|
|
@@ -4416,7 +4416,7 @@ MLXSW_ITEM32(reg, ppad, local_port, 0x00, 16, 8);
|
|
MLXSW_ITEM_BUF(reg, ppad, mac, 0x02, 6);
|
|
|
|
static inline void mlxsw_reg_ppad_pack(char *payload, bool single_base_mac,
|
|
- u16 local_port)
|
|
+ u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(ppad, payload);
|
|
mlxsw_reg_ppad_single_base_mac_set(payload, !!single_base_mac);
|
|
@@ -4490,7 +4490,7 @@ MLXSW_ITEM32(reg, paos, ee, 0x04, 30, 1);
|
|
*/
|
|
MLXSW_ITEM32(reg, paos, e, 0x04, 0, 2);
|
|
|
|
-static inline void mlxsw_reg_paos_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_paos_pack(char *payload, u8 local_port,
|
|
enum mlxsw_port_admin_status status)
|
|
{
|
|
MLXSW_REG_ZERO(paos, payload);
|
|
@@ -4633,7 +4633,7 @@ static inline void mlxsw_reg_pfcc_prio_pack(char *payload, u8 pfc_en)
|
|
mlxsw_reg_pfcc_pfcrx_set(payload, pfc_en);
|
|
}
|
|
|
|
-static inline void mlxsw_reg_pfcc_pack(char *payload, u16 local_port)
|
|
+static inline void mlxsw_reg_pfcc_pack(char *payload, u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(pfcc, payload);
|
|
mlxsw_reg_pfcc_local_port_set(payload, local_port);
|
|
@@ -5132,7 +5132,7 @@ MLXSW_ITEM64(reg, ppcnt, tc_no_buffer_discard_uc,
|
|
MLXSW_ITEM64(reg, ppcnt, wred_discard,
|
|
MLXSW_REG_PPCNT_COUNTERS_OFFSET + 0x00, 0, 64);
|
|
|
|
-static inline void mlxsw_reg_ppcnt_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_ppcnt_pack(char *payload, u8 local_port,
|
|
enum mlxsw_reg_ppcnt_grp grp,
|
|
u8 prio_tc)
|
|
{
|
|
@@ -5243,7 +5243,7 @@ MLXSW_ITEM_BIT_ARRAY(reg, pptb, prio_to_buff_msb, 0x0C, 0x04, 4);
|
|
|
|
#define MLXSW_REG_PPTB_ALL_PRIO 0xFF
|
|
|
|
-static inline void mlxsw_reg_pptb_pack(char *payload, u16 local_port)
|
|
+static inline void mlxsw_reg_pptb_pack(char *payload, u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(pptb, payload);
|
|
mlxsw_reg_pptb_mm_set(payload, MLXSW_REG_PPTB_MM_UM);
|
|
@@ -5340,7 +5340,7 @@ MLXSW_ITEM32_INDEXED(reg, pbmc, buf_xoff_threshold, 0x0C, 16, 16,
|
|
MLXSW_ITEM32_INDEXED(reg, pbmc, buf_xon_threshold, 0x0C, 0, 16,
|
|
0x08, 0x04, false);
|
|
|
|
-static inline void mlxsw_reg_pbmc_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_pbmc_pack(char *payload, u8 local_port,
|
|
u16 xoff_timer_value, u16 xoff_refresh)
|
|
{
|
|
MLXSW_REG_ZERO(pbmc, payload);
|
|
@@ -5398,7 +5398,7 @@ MLXSW_ITEM32(reg, pspa, local_port, 0x00, 16, 8);
|
|
*/
|
|
MLXSW_ITEM32(reg, pspa, sub_port, 0x00, 8, 8);
|
|
|
|
-static inline void mlxsw_reg_pspa_pack(char *payload, u8 swid, u16 local_port)
|
|
+static inline void mlxsw_reg_pspa_pack(char *payload, u8 swid, u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(pspa, payload);
|
|
mlxsw_reg_pspa_swid_set(payload, swid);
|
|
@@ -5513,7 +5513,7 @@ MLXSW_ITEM32(reg, pplr, local_port, 0x00, 16, 8);
|
|
*/
|
|
MLXSW_ITEM32(reg, pplr, lb_en, 0x04, 0, 8);
|
|
|
|
-static inline void mlxsw_reg_pplr_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_pplr_pack(char *payload, u8 local_port,
|
|
bool phy_local)
|
|
{
|
|
MLXSW_REG_ZERO(pplr, payload);
|
|
@@ -5609,7 +5609,7 @@ MLXSW_ITEM32(reg, pddr, trblsh_group_opcode, 0x08, 0, 16);
|
|
*/
|
|
MLXSW_ITEM32(reg, pddr, trblsh_status_opcode, 0x0C, 0, 16);
|
|
|
|
-static inline void mlxsw_reg_pddr_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_pddr_pack(char *payload, u8 local_port,
|
|
u8 page_select)
|
|
{
|
|
MLXSW_REG_ZERO(pddr, payload);
|
|
@@ -9160,7 +9160,7 @@ MLXSW_ITEM32(reg, mpar, enable, 0x04, 31, 1);
|
|
*/
|
|
MLXSW_ITEM32(reg, mpar, pa_id, 0x04, 0, 4);
|
|
|
|
-static inline void mlxsw_reg_mpar_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_mpar_pack(char *payload, u8 local_port,
|
|
enum mlxsw_reg_mpar_i_e i_e,
|
|
bool enable, u8 pa_id)
|
|
{
|
|
@@ -9281,7 +9281,7 @@ MLXSW_ITEM32(reg, mlcr, beacon_duration, 0x04, 0, 16);
|
|
*/
|
|
MLXSW_ITEM32(reg, mlcr, beacon_remain, 0x08, 0, 16);
|
|
|
|
-static inline void mlxsw_reg_mlcr_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_mlcr_pack(char *payload, u8 local_port,
|
|
bool active)
|
|
{
|
|
MLXSW_REG_ZERO(mlcr, payload);
|
|
@@ -9671,7 +9671,7 @@ MLXSW_ITEM32(reg, mpsc, e, 0x04, 30, 1);
|
|
*/
|
|
MLXSW_ITEM32(reg, mpsc, rate, 0x08, 0, 32);
|
|
|
|
-static inline void mlxsw_reg_mpsc_pack(char *payload, u16 local_port, bool e,
|
|
+static inline void mlxsw_reg_mpsc_pack(char *payload, u8 local_port, bool e,
|
|
u32 rate)
|
|
{
|
|
MLXSW_REG_ZERO(mpsc, payload);
|
|
@@ -9904,7 +9904,7 @@ MLXSW_ITEM32(reg, momte, type, 0x04, 0, 8);
|
|
*/
|
|
MLXSW_ITEM_BIT_ARRAY(reg, momte, tclass_en, 0x08, 0x08, 1);
|
|
|
|
-static inline void mlxsw_reg_momte_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_momte_pack(char *payload, u8 local_port,
|
|
enum mlxsw_reg_momte_type type)
|
|
{
|
|
MLXSW_REG_ZERO(momte, payload);
|
|
@@ -10574,7 +10574,7 @@ MLXSW_ITEM32(reg, tnqdr, local_port, 0x00, 16, 8);
|
|
*/
|
|
MLXSW_ITEM32(reg, tnqdr, dscp, 0x04, 0, 6);
|
|
|
|
-static inline void mlxsw_reg_tnqdr_pack(char *payload, u16 local_port)
|
|
+static inline void mlxsw_reg_tnqdr_pack(char *payload, u8 local_port)
|
|
{
|
|
MLXSW_REG_ZERO(tnqdr, payload);
|
|
mlxsw_reg_tnqdr_local_port_set(payload, local_port);
|
|
@@ -10963,7 +10963,7 @@ MLXSW_ITEM32(reg, sbcm, max_buff, 0x1C, 0, 24);
|
|
*/
|
|
MLXSW_ITEM32(reg, sbcm, pool, 0x24, 0, 4);
|
|
|
|
-static inline void mlxsw_reg_sbcm_pack(char *payload, u16 local_port, u8 pg_buff,
|
|
+static inline void mlxsw_reg_sbcm_pack(char *payload, u8 local_port, u8 pg_buff,
|
|
enum mlxsw_reg_sbxx_dir dir,
|
|
u32 min_buff, u32 max_buff,
|
|
bool infi_max, u8 pool)
|
|
@@ -11049,7 +11049,7 @@ MLXSW_ITEM32(reg, sbpm, min_buff, 0x18, 0, 24);
|
|
*/
|
|
MLXSW_ITEM32(reg, sbpm, max_buff, 0x1C, 0, 24);
|
|
|
|
-static inline void mlxsw_reg_sbpm_pack(char *payload, u16 local_port, u8 pool,
|
|
+static inline void mlxsw_reg_sbpm_pack(char *payload, u8 local_port, u8 pool,
|
|
enum mlxsw_reg_sbxx_dir dir, bool clr,
|
|
u32 min_buff, u32 max_buff)
|
|
{
|
|
@@ -11244,7 +11244,7 @@ MLXSW_ITEM32(reg, sbib, local_port, 0x00, 16, 8);
|
|
*/
|
|
MLXSW_ITEM32(reg, sbib, buff_size, 0x08, 0, 24);
|
|
|
|
-static inline void mlxsw_reg_sbib_pack(char *payload, u16 local_port,
|
|
+static inline void mlxsw_reg_sbib_pack(char *payload, u8 local_port,
|
|
u32 buff_size)
|
|
{
|
|
MLXSW_REG_ZERO(sbib, payload);
|
|
--
|
|
2.14.1
|
|
|