<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Gulim;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:"Malgun Gothic";}
@font-face
        {font-family:Gulim;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:"맑은 고딕",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=KO style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I</span>’<span lang=EN-US>m trying to use testpmd to test rte_flow with asynchronous API in DPDK 22.11.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I turned on dv_esw_en=1 by echoing switchdev to /sys/class/net/</span>…<span lang=EN-US>., and set dv_flow_en to 2 to use connectX-6 HWS (hardware steering).<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:#232323;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:lightgrey;background:#232323'>sudo build/app/dpdk-testpmd -a 0000:8a:00.0,dv_flow_en=2 -a 0000:8a:00.1,dv_flow_en=2 -- -i --rxq=1 --txq=1</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>In the prompt, I typed below<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:#232323;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:lightgrey;background:#232323'>flow configure 0 queues_number 1 queues_size 10 counters_number 0 aging_counters_number 0 meters_number 0 flags 0</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>but it said </span>“<span lang=EN-US>Device with port_id=0 already started.</span>”<span lang=EN-US>.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I know rte_flow_configure() call should be in the middle of rte_eth_dev_configure() and rte_eth_dev_start().<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>So, I run testpmd by below to postpone device start,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:#232323;text-autospace:ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:lightgrey;background:#232323'>sudo build/app/dpdk-testpmd -a 0000:8a:00.0,dv_flow_en=2 -a 0000:8a:00.1,dv_flow_en=2 -- -i --rxq=1 --txq=1 --disable-device-start</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>However, now not only rte_eth_dev_start() but also rte_eth_dev_configure() does not start, so it said </span>“<span lang=EN-US>Device with port_id=0 is not configured.</span>”<span lang=EN-US>.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>How can I run rte_flow_configure() between rte_eth_dev_configure() and rte_eth_dev_start() in testpmd?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Is there any parameter to postpone only rte_eth_dev_start()?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Sincerely,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Junghan Yoon.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>