<html xmlns:v="urn:schemas-microsoft-com:vml" 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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Hi Ferruh,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Please see my inline responses [Damo];<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Damo<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com> <br><b>Sent:</b> Monday, June 20, 2022 9:47 PM<br><b>To:</b> Ferruh Yigit <ferruh.yigit@xilinx.com>; Damodharam Ammepalli <damodharam.ammepalli@broadcom.com><br><b>Cc:</b> Ajit Kumar Khaparde <ajit.khaparde@broadcom.com>; dpdk-dev <dev@dpdk.org><br><b>Subject:</b> Re: [dpdk-dev] [PATCH 4/8] net/bnxt: allow Tx only or Rx only configs in PMD<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi Damo,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Could you please respond to Ferruh's question?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Regards,<o:p></o:p></p></div><div><p class=MsoNormal>Kalesh<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Thu, Jun 16, 2022 at 10:33 PM Ferruh Yigit <<a href="mailto:ferruh.yigit@xilinx.com">ferruh.yigit@xilinx.com</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal style='margin-bottom:12.0pt'>On 6/15/2022 3:56 PM, Kalesh A P wrote:<br><br>> <br>> From: Damodharam Ammepalli <<a href="mailto:damodharam.ammepall@broadcom.com" target="_blank">damodharam.ammepall@broadcom.com</a>><br>> <br>> Currently, we fail the init/probe of pmd if eth_dev->data->nb_tx_queues<br>> or eth_dev->data->nb_rx_queues is 0. We are removing this check.<br>> <br><br>Is there a valid usecase for Rx only or Tx only config?<br>I assume testpmd doesn't support it, how are you testing this?<br><span style='color:#1F497D'>[Damo]:<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Yes. There is a valid use case. We are trying to address a<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>customer request, to deploy an application in Rxonly mode.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>This is the sample testpmd command we used in our unit tests.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>./build/app/dpdk-testpmd -c 0xff  -n 4 --log-level="pmd.",7<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>--socket-mem 0,1024  -- --forward-mode=rxonly --txq=0 -i<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>We can update the commit headline to indicate Rx only configuration to<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>prevent misunderstanding.<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Please let me know and we will address accordingly.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'> <br>> Fixes: daef48efe5e5 ("net/bnxt: support set MTU")<br>> Cc: <a href="mailto:stable@dpdk.org" target="_blank">stable@dpdk.org</a><br>> <br>> Signed-off-by: Damodharam Ammepalli <<a href="mailto:damodharam.ammepall@broadcom.com" target="_blank">damodharam.ammepall@broadcom.com</a>><br>> Reviewed-by: Ajit Khaparde <<a href="mailto:ajit.khaparde@broadcom.com" target="_blank">ajit.khaparde@broadcom.com</a>><br>> Reviewed-by: Somnath Kotur <<a href="mailto:somnath.kotur@broadcom.com" target="_blank">somnath.kotur@broadcom.com</a>><br>> ---<br>>   drivers/net/bnxt/bnxt_ethdev.c | 7 +------<br>>   1 file changed, 1 insertion(+), 6 deletions(-)<br>> <br>> diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c<br>> index 34f2149..8181e1f 100644<br>> --- a/drivers/net/bnxt/bnxt_ethdev.c<br>> +++ b/drivers/net/bnxt/bnxt_ethdev.c<br>> @@ -723,7 +723,7 @@ static int bnxt_alloc_prev_ring_stats(struct bnxt *bp)<br>>                                               sizeof(struct bnxt_ring_stats) *<br>>                                               bp->tx_cp_nr_rings,<br>>                                               0);<br>> -       if (bp->prev_tx_ring_stats == NULL)<br>> +       if (bp->tx_cp_nr_rings > 0 && bp->prev_tx_ring_stats == NULL)<br>>                  goto error;<br>> <br>>          return 0;<br>> @@ -1567,11 +1567,6 @@ int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)<br>>          int vlan_mask = 0;<br>>          int rc, retry_cnt = BNXT_IF_CHANGE_RETRY_COUNT;<br>> <br>> -       if (!eth_dev->data->nb_tx_queues || !eth_dev->data->nb_rx_queues) {<br>> -               PMD_DRV_LOG(ERR, "Queues are not configured yet!\n");<br>> -               return -EINVAL;<br>> -       }<br>> -<br>>          if (bp->rx_cp_nr_rings > RTE_ETHDEV_QUEUE_STAT_CNTRS)<br>>                  PMD_DRV_LOG(ERR,<br>>                              "RxQ cnt %d > RTE_ETHDEV_QUEUE_STAT_CNTRS %d\n",<br>> --<br>> 2.10.1<br>> <o:p></o:p></p></blockquote></div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>-- <o:p></o:p></p><div><div><p class=MsoNormal>Regards,<o:p></o:p></p><div><p class=MsoNormal>Kalesh A P<o:p></o:p></p></div></div></div></div></body></html>
<br>
<span style="background-color:rgb(255,255,255)"><font size="2">This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.</font></span>