net/mlx5: Introduce access functions to modify/query vport mac lists
Those functions are needed to notify the upcoming L2 table and SR-IOV E-Switch(FDB) manager(PF), of the NIC vport (vf) UC/MC mac lists changes. preperation for ethernet sriov and l2 table management. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e1d7d349c6
commit
e16aea2744
@@ -1102,6 +1102,12 @@ enum {
|
||||
MLX5_FLOW_CONTEXT_DEST_TYPE_TIR = 2,
|
||||
};
|
||||
|
||||
enum mlx5_list_type {
|
||||
MLX5_NVPRT_LIST_TYPE_UC = 0x0,
|
||||
MLX5_NVPRT_LIST_TYPE_MC = 0x1,
|
||||
MLX5_NVPRT_LIST_TYPE_VLAN = 0x2,
|
||||
};
|
||||
|
||||
enum {
|
||||
MLX5_RQC_RQ_TYPE_MEMORY_RQ_INLINE = 0x0,
|
||||
MLX5_RQC_RQ_TYPE_MEMORY_RQ_RPM = 0x1,
|
||||
|
@@ -34,6 +34,7 @@
|
||||
#define __MLX5_VPORT_H__
|
||||
|
||||
#include <linux/mlx5/driver.h>
|
||||
#include <linux/mlx5/device.h>
|
||||
|
||||
u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod);
|
||||
int mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev,
|
||||
@@ -54,5 +55,14 @@ int mlx5_query_hca_vport_system_image_guid(struct mlx5_core_dev *dev,
|
||||
u64 *sys_image_guid);
|
||||
int mlx5_query_hca_vport_node_guid(struct mlx5_core_dev *dev,
|
||||
u64 *node_guid);
|
||||
int mlx5_query_nic_vport_mac_list(struct mlx5_core_dev *dev,
|
||||
u32 vport,
|
||||
enum mlx5_list_type list_type,
|
||||
u8 addr_list[][ETH_ALEN],
|
||||
int *list_size);
|
||||
int mlx5_modify_nic_vport_mac_list(struct mlx5_core_dev *dev,
|
||||
enum mlx5_list_type list_type,
|
||||
u8 addr_list[][ETH_ALEN],
|
||||
int list_size);
|
||||
|
||||
#endif /* __MLX5_VPORT_H__ */
|
||||
|
Reference in New Issue
Block a user