net/i40e: avoid PCI probing failure when using bogus SFP
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 15 Jun 2017 09:08:32 +0000 (11:08 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:56 +0000 (15:00 +0200)
commit2209c3e2c27522f05788ef9b2d35601691d823f6
treeca4f676f7ec242cf88b499c40722ccbaa20185e8
parent774e9ea919923143e0b93628ae10abf3e2a345d9
net/i40e: avoid PCI probing failure when using bogus SFP

When a port is using a bogus SFP, the PCI probing returns an error,
preventing to register a portid.

To give a better chance to the applications to retry after the SFP is
changed, move this check in eth_i40e_dev_configure(), so that only a
port reconfiguration is needed to retry.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_ethdev.c