net/enic: move link checking init to probe time
authorNelson Escobar <neescoba@cisco.com>
Tue, 9 Aug 2016 21:42:04 +0000 (14:42 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
commitc98779abbc108f44f95e0b8d1cd86fe9e9952a83
treebf241e83278354453ef2d875c6977b6685713343
parent19f8167c68ce9feff02db23365fdf42bd1a29741
net/enic: move link checking init to probe time

The enic DMAs link status information to the host and this requires a
little setup. This setup was being done as a result of calling
rte_eth_dev_start(). But applications expect to be able to check link
status before calling rte_eth_dev_start().

This patch moves the link status setup to enic_init() which is called
at device probe time so that link status can be checked anytime.

Fixes: fefed3d1e62c ("enic: new driver")

Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_main.c