mlx5_eswitch_uplink_get_proto_dev
ibdev = mlx5_eswitch_uplink_get_proto_dev(dev->priv.eswitch, REP_IB);
uplink_dev = mlx5_eswitch_uplink_get_proto_dev(esw, REP_ETH);
uplink_dev = mlx5_eswitch_uplink_get_proto_dev(esw, REP_ETH);
uplink_dev = mlx5_eswitch_uplink_get_proto_dev(esw, REP_ETH);
EXPORT_SYMBOL(mlx5_eswitch_uplink_get_proto_dev);
void *mlx5_eswitch_uplink_get_proto_dev(struct mlx5_eswitch *esw, u8 rep_type);