ethdev: fix storage type of latest port id
authorZhiyong Yang <zhiyong.yang@intel.com>
Fri, 18 May 2018 10:41:10 +0000 (18:41 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 22 May 2018 22:35:00 +0000 (00:35 +0200)
commit4462814d850fadcbdbbadb324d125aefbb83a2b8
treea02f60f32881eb4ee04fa1b161169fae22765f9f
parentaa4cef698c227210b255ecc7cfa024f698d4f71c
ethdev: fix storage type of latest port id

eth_dev_last_created_port is used to store port id type and should
be extended to 16bits corresponding to ethdev port id range.

Fixes: f8244c6399d9 ("ethdev: increase port id range")
Cc: stable@dpdk.org
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_ethdev/rte_ethdev.c