net/cxgbe: fix control queue mbuf pool naming convention
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Thu, 6 Dec 2018 10:13:20 +0000 (15:43 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Dec 2018 17:46:58 +0000 (17:46 +0000)
commit46df488b270a81a9353cac9374b8c338fcf7dfeb
treedf8ecebfa47e077f56d21119f8acf0ba3b38742d
parent47182a79db2f3eb8064c354fca24d96191da97bd
net/cxgbe: fix control queue mbuf pool naming convention

When multiple Chelsio adapters are present, the current naming
convention of using underlying physical port number of the adapter
creates conflicts when allocating control queue mbuf pool for
multiple adapters and hence results in allocation failure. Fix by
using port_id from rte_eth_dev_data, instead of physical port number.

Fixes: 3a3aaabc7c77 ("net/cxgbe: add control queue to communicate filter requests")
Cc: stable@dpdk.org
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/cxgbe_main.c