net/ixgbe: rework port check for driver-specific API
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Tue, 7 Feb 2017 06:33:26 +0000 (14:33 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Feb 2017 11:25:49 +0000 (12:25 +0100)
commit478aed44d552f48c5d7bb4750a30dc0046bffdeb
tree4629b0c98f192a9106c87a5cafe9496c684d71e8
parente1dbde9a1f8e7702cf191fb489d37f52243114e2
net/ixgbe: rework port check for driver-specific API

For PMD specific API it is required to check if provided port id is for
a supported device.

It's not appropriate to call rte_eth_dev_info_get in PMD, as
rte_eth_dev_info_get need to get info from PMD.

Remove rte_eth_dev_info_get from PMD code and get the info directly.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c