summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/vport.h
diff options
context:
space:
mode:
authorSaeed Mahameed2015-12-01 17:03:15 +0100
committerDavid S. Miller2015-12-03 18:08:45 +0100
commitc0046cf7b81ac55b8bf056c71918ec04edd99379 (patch)
tree5e83c60051b2fc517bef0936b6ce3c581b771713 /include/linux/mlx5/vport.h
parentnet/mlx5: Introduce access functions to modify/query vport promisc mode (diff)
downloadkernel-qcow2-linux-c0046cf7b81ac55b8bf056c71918ec04edd99379.tar.gz
kernel-qcow2-linux-c0046cf7b81ac55b8bf056c71918ec04edd99379.tar.xz
kernel-qcow2-linux-c0046cf7b81ac55b8bf056c71918ec04edd99379.zip
net/mlx5: Introduce access functions to modify/query vport vlans
Those functions are needed to notify the upcoming L2 table and SR-IOV E-Switch(FDB) manager(PF), of the NIC vport (vf) vlan table 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>
Diffstat (limited to 'include/linux/mlx5/vport.h')
-rw-r--r--include/linux/mlx5/vport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mlx5/vport.h b/include/linux/mlx5/vport.h
index dbbaed9f975a..638f2ca7a527 100644
--- a/include/linux/mlx5/vport.h
+++ b/include/linux/mlx5/vport.h
@@ -77,5 +77,12 @@ int mlx5_modify_nic_vport_promisc(struct mlx5_core_dev *mdev,
int promisc_uc,
int promisc_mc,
int promisc_all);
+int mlx5_query_nic_vport_vlans(struct mlx5_core_dev *dev,
+ u32 vport,
+ u16 vlans[],
+ int *size);
+int mlx5_modify_nic_vport_vlans(struct mlx5_core_dev *dev,
+ u16 vlans[],
+ int list_size);
#endif /* __MLX5_VPORT_H__ */