net/mlx5: remove useless driver name comparison
authorThomas Monjalon <thomas@monjalon.net>
Sun, 14 Oct 2018 13:06:54 +0000 (15:06 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Oct 2018 08:26:59 +0000 (10:26 +0200)
commita1883178e9c26afc0ecc18490a86d39d0b04dc07
treeea0b29ba571342e2c8f812549062b431220fbd0a
parent05f1d6842fc34a905ff971c9bbbd20c4653e9b26
net/mlx5: remove useless driver name comparison

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 Monjalon <thomas@monjalon.net>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_ethdev.c