net/ixgbe: fix probe with no devargs
authorDeclan Doherty <declan.doherty@intel.com>
Wed, 2 May 2018 15:59:40 +0000 (16:59 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 2 May 2018 17:28:48 +0000 (19:28 +0200)
commit07d27b971bf369e2748efe0bbf34b7b20d932a21
treea6e11a3b37a1112b8e1028e531ceb8f1ff349eb3
parent040ddce28acaaf791ff04d5ce77d7c25cd13c036
net/ixgbe: fix probe with no devargs

Initialise rte_ethdev_args parameters to zero to handle
the case where no devargs are passed to the IXGBE PF on
device probe, so that there is no invalid attempts to create
representor ports.

Coverity Issue: 277231
Fixes: cf80ba6e2038 ("net/ixgbe: add support for representor ports")

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c