net/memif: fix init when already connected
authorJúlius Milan <jmilan.dev@gmail.com>
Wed, 19 Feb 2020 08:19:16 +0000 (09:19 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 09:21:41 +0000 (10:21 +0100)
commit06123fdd6063e411ea78ed353f0d6114e500b1b3
treec5ae60028498b5034393621b2ebd7ffa0fb0bfe1
parentcbbbbd3365d299f55233b8f9a09ce0d9e43ec3ad
net/memif: fix init when already connected

This patch fixes the situation when there is already connected pair of
memif interfaces and another slave tries to initiate the connection with
(already occupied) master. Expected behavior is that the second slave
is refused and gets disconnect message with reason: "Already connected",
while old connection remains functional.

Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD")
Cc: stable@dpdk.org
Signed-off-by: Július Milan <jmilan.dev@gmail.com>
Reviewed-by: Jakub Grajciar <jgrajcia@cisco.com>
drivers/net/memif/memif_socket.c