Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1527764/?format=api
http://patchwork.ozlabs.org/api/patches/1527764/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/1631606713-20513-2-git-send-email-nanteby@nvidia.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": "<1631606713-20513-2-git-send-email-nanteby@nvidia.com>", "list_archive_url": null, "date": "2021-09-14T08:05:10", "name": "[ovs-dev,1/4] netdev-offload-dpdk: Refactor get_vport_netdev()", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "9ef90b68b9c59ca6c5a67cd2c559053084a6ce4c", "submitter": { "id": 82517, "url": "http://patchwork.ozlabs.org/api/people/82517/?format=api", "name": "Nir Anteby", "email": "nanteby@nvidia.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/1631606713-20513-2-git-send-email-nanteby@nvidia.com/mbox/", "series": [ { "id": 262205, "url": "http://patchwork.ozlabs.org/api/series/262205/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=262205", "date": "2021-09-14T08:05:09", "name": "netdev datapath hardware offload support for GRE flows", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/262205/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1527764/comments/", "check": "success", "checks": "http://patchwork.ozlabs.org/api/patches/1527764/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<ovs-dev-bounces@openvswitch.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "dev@openvswitch.org" ], "Delivered-To": [ "patchwork-incoming@ozlabs.org", "ovs-dev@lists.linuxfoundation.org" ], "Authentication-Results": "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)", "Received": [ "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\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 4H7wrl1H9Xz9ssP\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Sep 2021 18:05:43 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 2676360817;\n\tTue, 14 Sep 2021 08:05:40 +0000 (UTC)", "from smtp3.osuosl.org ([127.0.0.1])\n\tby localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 3KZNpz09CNAE; Tue, 14 Sep 2021 08:05:35 +0000 (UTC)", "from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56])\n\tby smtp3.osuosl.org (Postfix) with ESMTPS id 85A1360829;\n\tTue, 14 Sep 2021 08:05:34 +0000 (UTC)", "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 96090C002C;\n\tTue, 14 Sep 2021 08:05:32 +0000 (UTC)", "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 4FC2BC0026\n for <dev@openvswitch.org>; Tue, 14 Sep 2021 08:05:30 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 99ECE607E6\n for <dev@openvswitch.org>; Tue, 14 Sep 2021 08:05:28 +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 WatZcxna7cvM for <dev@openvswitch.org>;\n Tue, 14 Sep 2021 08:05:25 +0000 (UTC)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by smtp3.osuosl.org (Postfix) with ESMTP id AD57B607D9\n for <dev@openvswitch.org>; Tue, 14 Sep 2021 08:05:24 +0000 (UTC)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n nanteby@nvidia.com) with SMTP; 14 Sep 2021 11:05:17 +0300", "from nvidia.com (pegasus27.mtr.labs.mlnx [10.213.1.140])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 18E85HxQ005159;\n Tue, 14 Sep 2021 11:05:17 +0300" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.8.0", "To": "dev@openvswitch.org", "Date": "Tue, 14 Sep 2021 08:05:10 +0000", "Message-Id": "<1631606713-20513-2-git-send-email-nanteby@nvidia.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1631606713-20513-1-git-send-email-nanteby@nvidia.com>", "References": "<1631606713-20513-1-git-send-email-nanteby@nvidia.com>", "Cc": "elibr@nvidia.com, majd@nvidia.com", "Subject": "[ovs-dev] [PATCH 1/4] netdev-offload-dpdk: Refactor\n\tget_vport_netdev()", "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>", "From": "Nir Anteby via dev <ovs-dev@openvswitch.org>", "Reply-To": "Nir Anteby <nanteby@nvidia.com>", "MIME-Version": "1.0", "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": "Refactor the function as a pre-step towards supporting more tunnel\ntypes.\n\nSigned-off-by: Nir Anteby <nanteby@nvidia.com>\n---\n lib/netdev-offload-dpdk.c | 22 ++++++++--------------\n 1 file changed, 8 insertions(+), 14 deletions(-)", "diff": "diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c\nindex b87a50b..c831471 100644\n--- a/lib/netdev-offload-dpdk.c\n+++ b/lib/netdev-offload-dpdk.c\n@@ -2085,17 +2085,18 @@ struct get_vport_netdev_aux {\n struct rte_flow_tunnel *tunnel;\n odp_port_t *odp_port;\n struct netdev *vport;\n+ const char *type;\n };\n \n static bool\n-get_vxlan_netdev_cb(struct netdev *netdev,\n+get_vport_netdev_cb(struct netdev *netdev,\n odp_port_t odp_port,\n void *aux_)\n {\n const struct netdev_tunnel_config *tnl_cfg;\n struct get_vport_netdev_aux *aux = aux_;\n \n- if (strcmp(netdev_get_type(netdev), \"vxlan\")) {\n+ if (!aux->type || strcmp(netdev_get_type(netdev), aux->type)) {\n return false;\n }\n \n@@ -2117,7 +2118,7 @@ get_vxlan_netdev_cb(struct netdev *netdev,\n }\n \n static struct netdev *\n-get_vxlan_netdev(const char *dpif_type,\n+get_vport_netdev(const char *dpif_type,\n struct rte_flow_tunnel *tunnel,\n odp_port_t *odp_port)\n {\n@@ -2125,22 +2126,15 @@ get_vxlan_netdev(const char *dpif_type,\n .tunnel = tunnel,\n .odp_port = odp_port,\n .vport = NULL,\n+ .type = NULL,\n };\n \n- netdev_ports_traverse(dpif_type, get_vxlan_netdev_cb, &aux);\n- return aux.vport;\n-}\n-\n-static struct netdev *\n-get_vport_netdev(const char *dpif_type,\n- struct rte_flow_tunnel *tunnel,\n- odp_port_t *odp_port)\n-{\n if (tunnel->type == RTE_FLOW_ITEM_TYPE_VXLAN) {\n- return get_vxlan_netdev(dpif_type, tunnel, odp_port);\n+ aux.type = \"vxlan\";\n }\n+ netdev_ports_traverse(dpif_type, get_vport_netdev_cb, &aux);\n \n- OVS_NOT_REACHED();\n+ return aux.vport;\n }\n \n static int\n", "prefixes": [ "ovs-dev", "1/4" ] }{ "id": 1527764, "url": "