Thread (6 messages) 6 messages, 3 authors, 2020-03-09

Re: [dpdk-dev] [PATCH 1/2] net/memif: enable loopback

From: Ferruh Yigit <hidden>
Date: 2020-02-27 16:59:34

On 2/19/2020 8:18 AM, Július Milan wrote:
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 <redacted>
<...>
quoted hunk ↗ jump to hunk
@@ -642,8 +645,12 @@ memif_msg_receive(struct memif_control_channel *cc)
 
 	size = recvmsg(cc->intr_handle.fd, &mh, 0);
 	if (size != sizeof(memif_msg_t)) {
-		MIF_LOG(DEBUG, "Invalid message size.");
-		memif_msg_enq_disconnect(cc, "Invalid message size", 0);
+		MIF_LOG(DEBUG, "Invalid message size = %ld", size);
'size' type is 'size_t', can you please use correct format specifier '%zu' for it?
This will fix the 32-bit build.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help