net/mlx5: allow multiple probing for representor
authorOphir Munk <ophirmu@mellanox.com>
Tue, 23 Oct 2018 18:26:03 +0000 (18:26 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commit206254b7dc4283e0073373b88d451081bd0801b7
treef12741041665c64d636927027241651a1db5ba27
parent0ddd11437a9abc940061cbb2a046105413b9d6bf
net/mlx5: allow multiple probing for representor

Implement probing of a rte device multiple times, see [1].
Set PCI driver RTE_PCI_DRV_PROBE_AGAIN flag to enable multiple probing
of the PCI device by the PCI common driver.
Consecutive probing requests with a devargs string may contain
repetitive master and representors devices for which eth device should
be created only once. In case an eth device already exists - silently
ignore it.

[1]
commit e9d159c3d534 ("eal: allow probing a device again")

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5.c