net/memif: enable loopback
authorJúlius Milan <jmilan.dev@gmail.com>
Mon, 9 Mar 2020 14:22:08 +0000 (15:22 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 09:21:41 +0000 (10:21 +0100)
commitcbbbbd3365d299f55233b8f9a09ce0d9e43ec3ad
tree9697dc14ab08aac50c07db6bdb5a8d45a3fdcedf
parenta6e7cd81fa41a9938d4d056e0b6c18adc0b67546
net/memif: enable loopback

With this patch it is possible to connect 2 DPDK memifs into loopback,
i.e. when they have the same id and different roles, as for example:
  "--vdev=net_memif0,role=master,id=0"
  "--vdev=net_memif1,role=slave,id=0"

Signed-off-by: Július Milan <jmilan.dev@gmail.com>
Reviewed-by: Jakub Grajciar <jgrajcia@cisco.com>
doc/guides/nics/memif.rst
drivers/net/memif/memif_socket.c
drivers/net/memif/rte_eth_memif.c
drivers/net/memif/rte_eth_memif.h