Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1523911/?format=api
http://patchwork.ozlabs.org/api/patches/1523911/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/20210902172346.2389795-1-kumar.amber@intel.com/", "project": { "id": 47, "url": "http://patchwork.ozlabs.org/api/projects/47/?format=api", "name": "Open vSwitch", "link_name": "openvswitch", "list_id": "ovs-dev.openvswitch.org", "list_email": "ovs-dev@openvswitch.org", "web_url": "http://openvswitch.org/", "scm_url": "git@github.com:openvswitch/ovs.git", "webscm_url": "https://github.com/openvswitch/ovs", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20210902172346.2389795-1-kumar.amber@intel.com>", "list_archive_url": null, "date": "2021-09-02T17:23:46", "name": "[ovs-dev,v4] pmd.at: Add test-cases for DPCLS and DPIF commands.", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "31ea0b4e1ac60687775f2a669c0cbdf3dd6a689f", "submitter": { "id": 81621, "url": "http://patchwork.ozlabs.org/api/people/81621/?format=api", "name": "Kumar Amber", "email": "Kumar.amber@intel.com" }, "delegate": { "id": 57772, "url": "http://patchwork.ozlabs.org/api/users/57772/?format=api", "username": "imaximets", "first_name": "Ilya", "last_name": "Maximets", "email": "i.maximets@samsung.com" }, "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/20210902172346.2389795-1-kumar.amber@intel.com/mbox/", "series": [ { "id": 260774, "url": "http://patchwork.ozlabs.org/api/series/260774/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=260774", "date": "2021-09-02T17:23:46", "name": "[ovs-dev,v4] pmd.at: Add test-cases for DPCLS and DPIF commands.", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/260774/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1523911/comments/", "check": "success", "checks": "http://patchwork.ozlabs.org/api/patches/1523911/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<ovs-dev-bounces@openvswitch.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "ovs-dev@openvswitch.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "ovs-dev@lists.linuxfoundation.org" ], "Authentication-Results": "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=140.211.166.137; helo=smtp4.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)", "Received": [ "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4H0pGZ47FGz9sR4\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 3 Sep 2021 03:44:54 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 87F3A4038A;\n\tThu, 2 Sep 2021 17:44:51 +0000 (UTC)", "from smtp4.osuosl.org ([127.0.0.1])\n\tby localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id aVUf-vkOYBLD; Thu, 2 Sep 2021 17:44:50 +0000 (UTC)", "from lists.linuxfoundation.org (lf-lists.osuosl.org\n [IPv6:2605:bc80:3010:104::8cd3:938])\n\tby smtp4.osuosl.org (Postfix) with ESMTPS id 899C340382;\n\tThu, 2 Sep 2021 17:44:49 +0000 (UTC)", "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 5AEC7C0010;\n\tThu, 2 Sep 2021 17:44:49 +0000 (UTC)", "from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 5EEA9C000E\n for <ovs-dev@openvswitch.org>; Thu, 2 Sep 2021 17:44:47 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 494E96067F\n for <ovs-dev@openvswitch.org>; Thu, 2 Sep 2021 17:44:47 +0000 (UTC)", "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id 3Pb6w2v1_vBm for <ovs-dev@openvswitch.org>;\n Thu, 2 Sep 2021 17:44:46 +0000 (UTC)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by smtp3.osuosl.org (Postfix) with ESMTPS id E0827605BA\n for <ovs-dev@openvswitch.org>; Thu, 2 Sep 2021 17:44:45 +0000 (UTC)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Sep 2021 10:44:44 -0700", "from bmca4bf01706bbf.iind.intel.com (HELO localhost.localdomain)\n ([10.190.213.111])\n by FMSMGA003.fm.intel.com with ESMTP; 02 Sep 2021 10:44:42 -0700" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.8.0", "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10095\"; a=\"304764754\"", "E=Sophos;i=\"5.85,262,1624345200\"; d=\"scan'208\";a=\"304764754\"", "E=Sophos;i=\"5.85,262,1624345200\"; d=\"scan'208\";a=\"533406275\"" ], "X-ExtLoop1": "1", "From": "Kumar Amber <kumar.amber@intel.com>", "To": "ovs-dev@openvswitch.org", "Date": "Thu, 2 Sep 2021 22:53:46 +0530", "Message-Id": "<20210902172346.2389795-1-kumar.amber@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20210826195752.1975998-1-kumar.amber@intel.com>", "References": "<20210826195752.1975998-1-kumar.amber@intel.com>", "MIME-Version": "1.0", "Cc": "Kumar Amber <kumar.amber@intel.com>, i.maximets@ovn.org", "Subject": "[ovs-dev] [PATCH v4] pmd.at: Add test-cases for DPCLS and DPIF\n\tcommands.", "X-BeenThere": "ovs-dev@openvswitch.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "<ovs-dev.openvswitch.org>", "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>", "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>", "List-Post": "<mailto:ovs-dev@openvswitch.org>", "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>", "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "ovs-dev-bounces@openvswitch.org", "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>" }, "content": "Added 2 separate test-cases for DPCLS and DPIF commands:\n1018: PMD - dpcls configuration\n1017: PMD - dpif configuration\n\nThe above added tests are to test the commands which are used\nto either get or set the dpcls and dpif function pointers to\nvarious different implementations like AVX512 or auto-validator\nbased on different CPU ISA supported.\n\nSigned-off-by: Kumar Amber <kumar.amber@intel.com>\n\n---\nv4:\n- include description about tests in the commit msg.\n- added out of range priority for dpcls.\nv3:\n- include comments from Kevin.\n- minor fixes in name and title.\n- include check for get commands.\n- include multiple scenarios for dpcls including max prio, min pro,\n same prio, changing prio and check for each fo them.\nv2:\n- move the test-case to pmd.at from dpdk suit.\n- removed avx512 specific set command as per discussion.\n---\n tests/pmd.at | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 92 insertions(+)", "diff": "diff --git a/tests/pmd.at b/tests/pmd.at\nindex 225d4ee3a..c875a744f 100644\n--- a/tests/pmd.at\n+++ b/tests/pmd.at\n@@ -1068,3 +1068,95 @@ AT_CHECK([ovs-appctl dpctl/del-dp dummy@dp0], [0], [dnl\n \n OVS_VSWITCHD_STOP\n AT_CLEANUP\n+\n+AT_SETUP([PMD - dpif configuration])\n+OVS_VSWITCHD_START([], [], [], [--dummy-numa 0,0])\n+AT_CHECK([ovs-vsctl add-port br0 p1 -- set Interface p1 type=dummy-pmd])\n+\n+AT_CHECK([ovs-vsctl show], [], [stdout])\n+AT_CHECK([ovs-appctl dpif-netdev/dpif-impl-get | grep \"dpif_scalar\"], [], [dnl\n+ dpif_scalar (pmds: 0)\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/dpif-impl-set dpif_scalar], [0], [dnl\n+DPIF implementation set to dpif_scalar.\n+])\n+\n+OVS_VSWITCHD_STOP\n+AT_CLEANUP\n+\n+AT_SETUP([PMD - dpcls configuration])\n+OVS_VSWITCHD_START([], [], [], [--dummy-numa 0,0])\n+AT_CHECK([ovs-vsctl add-port br0 p1 -- set Interface p1 type=dummy-pmd])\n+\n+AT_CHECK([ovs-vsctl show], [], [stdout])\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-get | grep generic], [], [dnl\n+ 1 : generic\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-get | grep autovalidator], [], [dnl\n+ 0 : autovalidator\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-set autovalidator 3], [0], [dnl\n+Lookup priority change affected 0 dpcls ports and 0 subtables.\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-get | grep autovalidator], [], [dnl\n+ 3 : autovalidator\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-set generic 4], [0], [dnl\n+Lookup priority change affected 0 dpcls ports and 0 subtables.\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-get | grep generic], [], [dnl\n+ 4 : generic\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-set generic 8], [0], [dnl\n+Lookup priority change affected 0 dpcls ports and 0 subtables.\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-get | grep generic], [], [dnl\n+ 8 : generic\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-set autovalidator 8], [0], [dnl\n+Lookup priority change affected 0 dpcls ports and 0 subtables.\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-get | grep autovalidator], [], [dnl\n+ 8 : autovalidator\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-set generic 0], [0], [dnl\n+Lookup priority change affected 0 dpcls ports and 0 subtables.\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-get | grep generic], [], [dnl\n+ 0 : generic\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-set generic 255], [0], [dnl\n+Lookup priority change affected 0 dpcls ports and 0 subtables.\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-get | grep generic], [], [dnl\n+ 255 : generic\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-set generic -1], [2],\n+[], [dnl\n+error converting priority, use integer in range 0-255\n+ovs-appctl: ovs-vswitchd: server returned an error\n+])\n+\n+AT_CHECK([ovs-appctl dpif-netdev/subtable-lookup-prio-set generic 300], [2],\n+[], [dnl\n+error converting priority, use integer in range 0-255\n+ovs-appctl: ovs-vswitchd: server returned an error\n+])\n+\n+OVS_VSWITCHD_STOP\n+AT_CLEANUP\n", "prefixes": [ "ovs-dev", "v4" ] }{ "id": 1523911, "url": "