<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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">Please find inline comments.<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 1:10 AM<br>
<b>To:</b> Narala Praneeth Reddy; dts@dpdk.org<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</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">External Email<br>
<br>
----------------------------------------------------------------------<br>
<br>
<br>
> -----Original Message-----<br>
> From: dts [<a href="mailto:dts-bounces@dpdk.org" id="LPlnk299570" class="OWAAutoLink" previewremoved="true">mailto:dts-bounces@dpdk.org</a>] On Behalf Of<br>
> nareddy@marvell.com<br>
> Sent: Monday, April 22, 2019 10:24 PM<br>
> To: dts@dpdk.org<br>
> Cc: fmasood@marvell.com; avijay@marvell.com; Praneeth Reddy<br>
> <nareddy@marvell.com><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 <nareddy@marvell.com><br>
> <br>
> Marking this test case as not applicable for cavium_a063<br>
> <br>
> Signed-off-by: Praneeth Reddy <nareddy@marvell.com><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?<br>
<div>[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.</div>
>              '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<br>
<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>