Re: [dpdk-dev] [PATCH v5 1/7] net/mlx5: remove useless driver name comparison

2018-10-14 Thread Shahaf Shuler
Sunday, October 14, 2018 11:49 PM, Thomas Monjalon: > 14/10/2018 22:47, Thomas Monjalon: > > The function mlx5_dev_to_port_id() is returning all the ports > > associated to a rte_device. > > It was comparing driver names while already comparing rte_device > pointers. > > If two devices are the same

Re: [dpdk-dev] [PATCH v5 1/7] net/mlx5: remove useless driver name comparison

2018-10-14 Thread Thomas Monjalon
+Cc Yongseok and Shahaf 14/10/2018 22:47, Thomas Monjalon: > The function mlx5_dev_to_port_id() is returning all the ports > associated to a rte_device. > It was comparing driver names while already comparing rte_device pointers. > If two devices are the same, they will have the same driver. > So

[dpdk-dev] [PATCH v5 1/7] net/mlx5: remove useless driver name comparison

2018-10-14 Thread Thomas Monjalon
The function mlx5_dev_to_port_id() is returning all the ports associated to a rte_device. It was comparing driver names while already comparing rte_device pointers. If two devices are the same, they will have the same driver. So the useless driver name comparison is removed. Signed-off-by: Thomas