summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5.h
diff options
context:
space:
mode:
authorOri Kam <orika@mellanox.com>2019-04-18 13:16:02 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-04-19 14:51:55 +0200
commit2e4c987aad91b836bfaf8f23d281c04652d7ddad (patch)
tree286d8ae79f18420cecae2e26e0299ff530ae53ce /drivers/net/mlx5/mlx5.h
parente2b4925ef7c11c4271b2c8fb46154d347cba26e2 (diff)
downloaddpdk-2e4c987aad91b836bfaf8f23d281c04652d7ddad.zip
dpdk-2e4c987aad91b836bfaf8f23d281c04652d7ddad.tar.gz
dpdk-2e4c987aad91b836bfaf8f23d281c04652d7ddad.tar.xz
net/mlx5: validate Direct Rule E-Switch
Add validation logic for E-Switch using Direct Rules. Signed-off-by: Ori Kam <orika@mellanox.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5.h')
-rw-r--r--drivers/net/mlx5/mlx5.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
index 2dd0e68..d771edd 100644
--- a/drivers/net/mlx5/mlx5.h
+++ b/drivers/net/mlx5/mlx5.h
@@ -423,6 +423,8 @@ eth_rx_burst_t mlx5_select_rx_function(struct rte_eth_dev *dev);
unsigned int mlx5_dev_to_port_id(const struct rte_device *dev,
uint16_t *port_list,
unsigned int port_list_n);
+int mlx5_port_to_eswitch_info(uint16_t port, uint16_t *es_domain_id,
+ uint16_t *es_port_id);
int mlx5_sysfs_switch_info(unsigned int ifindex,
struct mlx5_switch_info *info);
void mlx5_sysfs_check_switch_info(bool device_dir,