<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Tu, Lijuan <lijuan.tu@intel.com><br>
<b>Sent:</b> Wednesday, April 24, 2019 10:01 PM<br>
<b>To:</b> Narala Praneeth Reddy; dts@dpdk.org<br>
<b>Cc:</b> Faisal Masood; Vijaya Bhaskar Annayyolla<br>
<b>Subject:</b> RE: [dts] [PATCH] TestSuite_ptype_mapping.py: i40 pmd specific ptype mapping is not supported for cavium_a063</font>
<div> </div>
</div>
<div link="blue" vlink="purple" lang="EN-US">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="x_MsoNormal"><a name="x__MailEndCompose" id="LPlnk785617" class="OWAAutoLink" previewremoved="true"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></a></p>
<div style="border:none; border-left:solid blue 1.5pt; padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><a name="x______replyseparator" id="LPlnk176480" class="OWAAutoLink" previewremoved="true"></a><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">
 Narala Praneeth Reddy [mailto:nareddy@marvell.com] <br>
<b>Sent:</b> Wednesday, April 24, 2019 4:27 AM<br>
<b>To:</b> Tu, Lijuan <lijuan.tu@intel.com>; dts@dpdk.org<br>
<b>Cc:</b> Faisal Masood <fmasood@marvell.com>; Vijaya Bhaskar Annayyolla <avijay@marvell.com><br>
<b>Subject:</b> Re: [dts] [PATCH] TestSuite_ptype_mapping.py: i40 pmd specific ptype mapping is not supported for cavium_a063</span></p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<div id="x_divtagdefaultwrapper">
<p><span style="font-family:"Calibri",sans-serif; color:black">Please find inline comments.</span></p>
<p class="x_MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<div>
<div class="x_MsoNormal" style="text-align:center" align="center"><span style="font-family:"Calibri",sans-serif; color:black">
<hr size="3" align="center" width="98%">
</span></div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"> Tu, Lijuan <<a href="mailto:lijuan.tu@intel.com" id="LPlnk207610" class="OWAAutoLink" previewremoved="true">lijuan.tu@intel.com</a>><br>
<b>Sent:</b> Wednesday, April 24, 2019 1:10 AM<br>
<b>To:</b> Narala Praneeth Reddy; <a href="mailto:dts@dpdk.org" id="LPlnk973037" class="OWAAutoLink" previewremoved="true">
dts@dpdk.org</a><br>
<b>Cc:</b> Faisal Masood; Vijaya Bhaskar Annayyolla<br>
<b>Subject:</b> [EXT] RE: [dts] [PATCH] TestSuite_ptype_mapping.py: i40 pmd specific ptype mapping is not supported for cavium_a063</span><span style="font-family:"Calibri",sans-serif; color:black">
</span></p>
<div>
<p class="x_MsoNormal"><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
</div>
</div>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">External Email<br>
<br>
----------------------------------------------------------------------<br>
<br>
<br>
> -----Original Message-----<br>
> From: dts [<a href="mailto:dts-bounces@dpdk.org" id="LPlnk299570" previewremoved="true">mailto:dts-bounces@dpdk.org</a>] On Behalf Of<br>
> <a href="mailto:nareddy@marvell.com" id="LPlnk836250" class="OWAAutoLink" previewremoved="true">
nareddy@marvell.com</a><br>
> Sent: Monday, April 22, 2019 10:24 PM<br>
> To: <a href="mailto:dts@dpdk.org" id="LPlnk480531" class="OWAAutoLink" previewremoved="true">
dts@dpdk.org</a><br>
> Cc: <a href="mailto:fmasood@marvell.com" id="LPlnk431230" class="OWAAutoLink" previewremoved="true">
fmasood@marvell.com</a>; <a href="mailto:avijay@marvell.com" id="LPlnk862862" class="OWAAutoLink" previewremoved="true">
avijay@marvell.com</a>; Praneeth Reddy<br>
> <<a href="mailto:nareddy@marvell.com" id="LPlnk316680" class="OWAAutoLink" previewremoved="true">nareddy@marvell.com</a>><br>
> Subject: [dts] [PATCH] TestSuite_ptype_mapping.py: i40 pmd specific ptype<br>
> mapping is not supported for cavium_a063<br>
> <br>
> From: Praneeth Reddy <<a href="mailto:nareddy@marvell.com" id="LPlnk645635" class="OWAAutoLink" previewremoved="true">nareddy@marvell.com</a>><br>
> <br>
> Marking this test case as not applicable for cavium_a063<br>
> <br>
> Signed-off-by: Praneeth Reddy <<a href="mailto:nareddy@marvell.com" id="LPlnk106661" class="OWAAutoLink" previewremoved="true">nareddy@marvell.com</a>><br>
> ---<br>
>  conf/test_case_checklist.json    | 62<br>
> +++++++++++++++++++++++++++++++++++++++-<br>
>  tests/TestSuite_ptype_mapping.py |  2 +-<br>
>  2 files changed, 62 insertions(+), 2 deletions(-)<br>
> <br>
> diff --git a/conf/test_case_checklist.json b/conf/test_case_checklist.json<br>
> index a1aa90b..decc946 100644<br>
> --- a/conf/test_case_checklist.json<br>
> +++ b/conf/test_case_checklist.json<br>
> @@ -2200,5 +2200,65 @@<br>
>              "Bug ID": "",<br>
>              "Comments": "the nic not support this case"<br>
>          }<br>
> -    ]<br>
> +    ],<br>
> +     "ptype_mapping_get": [<br>
> +        {<br>
> +            "OS": [<br>
> +                "ALL"<br>
> +            ],<br>
> +            "NIC": [<br>
> +                "cavium_a063"<br>
> +            ],<br>
> +            "Target": [<br>
> +                "ALL"<br>
> +            ],<br>
> +            "Bug ID": "",<br>
> +            "Comments": "the nic not support this case"<br>
> +        }<br>
> +    ],<br>
> +     "ptype_mapping_replace": [<br>
> +        {<br>
> +            "OS": [<br>
> +                "ALL"<br>
> +            ],<br>
> +            "NIC": [<br>
> +                "cavium_a063"<br>
> +            ],<br>
> +            "Target": [<br>
> +                "ALL"<br>
> +            ],<br>
> +            "Bug ID": "",<br>
> +            "Comments": "the nic not support this case"<br>
> +        }<br>
> +    ],<br>
> +     "ptype_mapping_reset": [<br>
> +        {<br>
> +            "OS": [<br>
> +                "ALL"<br>
> +            ],<br>
> +            "NIC": [<br>
> +                "cavium_a063"<br>
> +            ],<br>
> +            "Target": [<br>
> +                "ALL"<br>
> +            ],<br>
> +            "Bug ID": "",<br>
> +            "Comments": "the nic not support this case"<br>
> +        }<br>
> +    ],<br>
> +     "ptype_mapping_update": [<br>
> +        {<br>
> +            "OS": [<br>
> +                "ALL"<br>
> +            ],<br>
> +            "NIC": [<br>
> +                "cavium_a063"<br>
> +            ],<br>
> +            "Target": [<br>
> +                "ALL"<br>
> +            ],<br>
> +            "Bug ID": "",<br>
> +            "Comments": "the nic not support this case"<br>
> +        }<br>
> +     ]<br>
>  }<br>
> diff --git a/tests/TestSuite_ptype_mapping.py<br>
> b/tests/TestSuite_ptype_mapping.py<br>
> index 2771337..6e1fce1 100644<br>
> --- a/tests/TestSuite_ptype_mapping.py<br>
> +++ b/tests/TestSuite_ptype_mapping.py<br>
> @@ -45,7 +45,7 @@ class TestPtype_Mapping(TestCase):<br>
>          Run at the start of each test suite.<br>
>          """<br>
>          self.verify(self.nic in ['fortville_eagle', 'fortville_spirit',<br>
> -            'fortville_spirit_single', 'fortville_25g'],<br>
> +            'fortville_spirit_single', 'fortville_25g', 'cavium_a063'],<br>
[Lijuan] The NIC in the list above means support these cases. But from other context, Cavium_a063 does not support ptype mapping, Did I miss anything?</span></p>
<div>
<p class="x_MsoNormal" style="margin-left:4.8pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">[Praneeth] ptype_mapping test case get FAIL and mention NIC not supported whenever complete DTS test suite ran for cavium_a063, inorder
 to make this test case as N/A, did following changes.<br>
                              1. Added cavium_a063 to support list in TestSuite_ptype_mapping.py, so that ptype_mapping test cases doesn't get fails and moves to next step.<br>
                              2. Later as I added all ptype_mapping test cases in test_case_checklist.json, ptype_mapping test cases gets skip without executing. Finally the result will be N/A instead of FAIL.<br>
                       Is this right way? Is there any other procedure to mark this test case as N/A for cavium_a063.</span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"></span></p>
<p class="x_MsoNormal"><b><i><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">[Lijuan] it’s the right way to leverage item 2 to skip the test cases if your NIC not support them. Cavium_a063 does not support ptype mapping, so it
 should not be added in the support list in TestSuite_ptype_mapping.py, that’s why you get failure. If the cases don’t be added in checklist, it will go to test cases which including the verify statement, otherwise it will skip the test cases.</span></i></b></p>
<p class="x_MsoNormal"><b><i><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">That’s why you get what you want when you tried item 2, but it doesn’t mean we could use item 1 improperly. Remove item 1 and keep item 2 is suitable
 for your purpose.</span></i></b></p>
<p class="x_MsoNormal"><b><i><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"><span style="color: rgb(208, 92, 18);">[Praneeth] Ok thanks, for not supported test cases we will skip the test case.</span><br>
</span></i></b></p>
</div>
<p class="x_MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">>              'ptype mapping test can not support %s nic' % self.nic)<br>
>          ports = self.dut.get_ports()<br>
>          self.verify(len(ports) >= 1, "Insufficient ports for testing")<br>
> --<br>
> 1.8.3.1</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>