net/memif: support multiple Tx
authorAnand Sunkad <anand.sunkad@benisontech.com>
Thu, 17 Oct 2019 13:20:50 +0000 (13:20 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:00:22 +0000 (19:00 +0200)
commited650f3dd83fe4a4000277d1a44a38806c0c7d67
treece25c042d99d30ced3801b3e1a2ef12d46b14a70
parentd803feec8d23c0c0394809d8fa6e2563607ce180
net/memif: support multiple Tx

When Multiple slave/master Memif's interfaces are created in single
process data transmission over second connection is not successful.

Issue is because of "mq->in_port" is not initialized with
"dev->data->port_id" in memif_tx_queue_setup() function, and while
transmitting packets over second connection in eth_memif_tx function
it refer "mq->in_port" which is always zero, which leads to data
transmission always in 0th port.

To mitigate the issue,"mq->in_port" is initialized with
"dev->data->port_id" in memif_tx_queue_setup() function.

Signed-off-by: Anand Sunkad <anand.sunkad@benisontech.com>
Reviewed-by: Jakub Grajciar <jgrajcia@cisco.com>
drivers/net/memif/rte_eth_memif.c