<HTML><HEAD>
<META content=IE=5 http-equiv=X-UA-Compatible>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE id=mysingle_style type=text/css>.search-word {
        BACKGROUND-COLOR: #ffee94
}
P {
        FONT-SIZE: 10pt; MARGIN-BOTTOM: 5px; FONT-FAMILY: 맑은 고딕, arial; MARGIN-TOP: 5px
}
TD {
        FONT-SIZE: 10pt; MARGIN-BOTTOM: 5px; FONT-FAMILY: 맑은 고딕, arial; MARGIN-TOP: 5px
}
LI {
        FONT-SIZE: 10pt; MARGIN-BOTTOM: 5px; FONT-FAMILY: 맑은 고딕, arial; MARGIN-TOP: 5px
}
BODY {
        FONT-SIZE: 10pt; FONT-FAMILY: 맑은 고딕, arial; MARGIN: 10px; LINE-HEIGHT: 1.4
}
</STYLE>

<STYLE id=knox_style type=text/css>P {
        FONT-SIZE: 10pt; MARGIN-BOTTOM: 5px; FONT-FAMILY: 맑은 고딕, arial; MARGIN-TOP: 5px
}
</STYLE>

<META name=GENERATOR content=ActiveSquare></HEAD>
<BODY style="OVERFLOW: auto">
<P></P>
<P>Hi,</P>
<P> </P>
<P>Did you try to add --mbuf-size option for dpdk-testpmd ?</P>
<P>example) --max-pkt-len=9000 --mbuf-size 9000</P>
<P> </P>
<P>Regards,</P>
<P>MJ</P>
<P> </P>
<P>--------- <B>Original Message</B> ---------</P>
<P><B>Sender</B> : Julien Plante <julien.plante@obspm.fr></P>
<P><B>Date</B> : 2022-05-16 16:38 (GMT+9)</P>
<P><B>Title</B> : Jumbo Frames on Memif PMD</P>
<P> </P>
<P>Hi,</P>
<P>I'm trying to use the memif PMD with Jumbo Frames, without any success yet.<BR>Please note that I'm currently using DPDK 21.11, but could consider updating.<BR></P>
<P><BR></P>
<P>On standard packet size, I'm able to transmit packets using memif with the following commands:</P>
<P>Terminal 1 (receiver, launch first):<BR># ./dpdk-testpmd -l 2-3 --vdev=net_memif0,id=0,role=server --file-prefix=pmd1 -- --forward-mode=rxonly --max-pkt-len=1518</P>
<P>Terminal 2 (sender, launch second):<BR># ./dpdk-testpmd -l 0-1 --vdev=net_memif0,id=0,role=client --file-prefix=pmd2 -- --forward-mode=txonly --max-pkt-len=1518</P>
<P><BR></P>
<P>When trying to send Jumbo Frames, I get an error on the server launch: <BR></P>
<P># ./dpdk-testpmd -l 2-3 --vdev=net_memif0,id=0,role=server --file-prefix=pmd1 -- --forward-mode=rxonly --max-pkt-len=9000<BR>...<BR>Frame size (9000) > device max frame size (1518) for port_id 0<BR>...<BR></P>
<P><BR></P>
<P>Do you know if it is possible to increase this device max frame size for the memif PMD ?</P>
<P><BR></P>
<P>About what I tried:</P>
<P>- Changing the bsize (Size of single packet buffer) option of the PMD to a value higher than 9000 (I tried 9000 and 2^14=16384).<BR> I did not understand what this parameter changes, but it did not seem to help, the error stayed the same.</P>
<P>- Reading the doc (both <A href="https://protect2.fireeye.com/v1/url?k=4eb31a67-2f380f51-4eb29128-74fe485cbff1-900faa1773a3392a&q=1&e=fba34704-3936-427f-8095-cdc5f573a280&u=https%3A%2F%2Fdoc.dpdk.org%2Fguides%2Fnics%2Fmemif.html" moz-do-not-send="true">DPDK</A>'s and <A href="https://protect2.fireeye.com/v1/url?k=f4ca4b38-95415e0e-f4cbc077-74fe485cbff1-591e0f460e0b7653&q=1&e=fba34704-3936-427f-8095-cdc5f573a280&u=https%3A%2F%2Fdocs.fd.io%2Fvpp%2F17.10%2Flibmemif_doc.html" moz-do-not-send="true">VPP</A>'s), searching for MTU limitations, but saw no such thing.</P>
<P>- Start from the error message to find where the device max frame size is set. It is initialized at drivers/net/memif/rte_eth_memif.c:198,<BR> to the value RTE_ETHER_MAX_LEN (1518), and left untouched after that. Is there any reason to limit the PMD to this value, or we could<BR> add a setter for this value ?<BR></P>
<P><BR></P>
<P>Thanks for any help on this issue,<BR>Julien<BR></P>
<P><BR></P><table id=bannersignimg data-cui-lock="true" namo_lock><tr><td><p> </p>
</td></tr></table><table id=confidentialsignimg data-cui-lock="true" namo_lock><tr><td><p><img style="border: 0px solid currentColor; border-image: none; width: 520px; height: 144px; display: inline-block;" unselectable="on" data-cui-image="true" src="cid:cafe_image_0@s-core.co.kr"> </p>
</td></tr></table></BODY></HTML><table style='display: none;'><tbody><tr><td><img style='display: none;' border=0 src='http://ext.samsung.net/mail/ext/v1/external/status/update?userid=mj2006.kim&do=bWFpbElEPTIwMjIwNTE3MDQzODE5ZXBjbXMxcDZlZTc1MGYxOWExNWU5ZjBjZGE4YWVmNjkyMmRiOTMxOCZyZWNpcGllbnRBZGRyZXNzPXVzZXJzQGRwZGsub3Jn' width=0 height=0></td></tr></tbody></table>