net/nfp: avoid unplug if multiport
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Tue, 31 Oct 2017 11:04:52 +0000 (11:04 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 1 Nov 2017 21:17:06 +0000 (22:17 +0100)
commit0b274fbecec5302aa8c68ed3770cbed7f1e59cf2
tree5e580d5f2b5d93dc2a29b7f8bbaf623902a3af2b
parent8a177918c39b6a7f3a167370786dd4e8808debc8
net/nfp: avoid unplug if multiport

PF multiport support has some limitations like not allowing plugging or
unplugging of single ports as they all belong to same PCI device.

A previous patch for removing detachable flag introduced a wrong check.

Fixes: 00a3d8104ac5 ("ethdev: remove detachable device flag")

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c