Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/66610/?format=api
http://patches.dpdk.org/api/patches/66610/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200312172047.19973-7-stephen@networkplumber.org/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20200312172047.19973-7-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20200312172047.19973-7-stephen@networkplumber.org", "date": "2020-03-12T17:20:46", "name": "[6/7] examples/tep_termination: block attempts to use owned ports", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "633257304300011a810a6f94aaf52b87c0d52ccd", "submitter": { "id": 27, "url": "http://patches.dpdk.org/api/people/27/?format=api", "name": "Stephen Hemminger", "email": "stephen@networkplumber.org" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200312172047.19973-7-stephen@networkplumber.org/mbox/", "series": [ { "id": 8898, "url": "http://patches.dpdk.org/api/series/8898/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8898", "date": "2020-03-12T17:20:40", "name": "checking for owned ports in portmask", "version": 1, "mbox": "http://patches.dpdk.org/series/8898/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/66610/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/66610/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 4242BA056D;\n\tThu, 12 Mar 2020 18:22:22 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 886751C0AB;\n\tThu, 12 Mar 2020 18:21:07 +0100 (CET)", "from mail-pj1-f67.google.com (mail-pj1-f67.google.com\n [209.85.216.67]) by dpdk.org (Postfix) with ESMTP id 043881C066\n for <dev@dpdk.org>; Thu, 12 Mar 2020 18:21:04 +0100 (CET)", "by mail-pj1-f67.google.com with SMTP id mq3so2930576pjb.0\n for <dev@dpdk.org>; Thu, 12 Mar 2020 10:21:03 -0700 (PDT)", "from hermes.corp.microsoft.com (204-195-22-127.wavecable.com.\n [204.195.22.127])\n by smtp.gmail.com with ESMTPSA id v1sm9447511pjy.35.2020.03.12.10.21.01\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 12 Mar 2020 10:21:01 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=Ge4blt7351q3kY/MQA5F1nD+Om5sRlhumnyhz6o/IrQ=;\n b=F6SbVjofpu/QF81pwufLUJgxsghL9GdXmFmIMAmShXbbpFzDY+J9EHTfn90iaYZhuz\n lDHuq8VsXQKeBjT8B8n4EgRnj8iubKptcDD91xa5j/iAlHUbYLLPdnV9XCx/GAlOeFqM\n cITckFa3XVUwfFkjMrFlxy5d3skJSb/qGPszHlH97an352PVShKNNHwFDACnAeV5P5pl\n I27Rs6w7qr0uu/86ailRR7YLesEjaFtWzjwEBRBujToiCOrFinaB2DgmZShcuSI9vwNB\n uNmDHrsiTTFOYWmV4Qle2IBL0tRoXKbk8wm7GTOqwoYnwv9jvb01pyq+F3jFw9g0XrVf\n Ax/A==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=Ge4blt7351q3kY/MQA5F1nD+Om5sRlhumnyhz6o/IrQ=;\n b=rWwh+l/eV4FVF0QMYW8fY4CPpP+VnC/HofDl0tLuBYMui09XSBz0xIZcQUs9dZii2Z\n jyszuufIuRBFMXSdBGERrVXnifqcg6tFLEC2weNnHNhApJTBhWiMmrzhsh/fNLPwiTkb\n s4GsE95JhcICiqeY0t2KtXkOT4zS/JK5pX2LOKQBowqPEix2RP3VNKDluxfV28is6qlw\n WO7nS/iThMCBPRafBtSdMOSgmRlIUe0/uLvz3cGKXt9xFbkWuo8dmdhNFLb1WHbhNi7B\n 19wPbKWswXYtLBBl+DxdHEuk+wJ5wURmXOZtYfOG/HirU5Bi+YvPcDEqDoaY2qdxlJ9G\n Q0ow==", "X-Gm-Message-State": "ANhLgQ03Gerfirgr00mYlx84ZoXT+ueF/RbUzwToDDn5bumK08ClzbtK\n vaGj7T1kYxO3gpi4jQNWTqVFCrQYFLU=", "X-Google-Smtp-Source": "\n ADFU+vu5RZ2mHUoapnJ4jrG81udjY1L1DAzpapeE1JgPXlM7nrc79xeKM7PeRd/nwnpP1sdnXYEpBA==", "X-Received": "by 2002:a17:90a:c301:: with SMTP id\n g1mr4989829pjt.88.1584033662644;\n Thu, 12 Mar 2020 10:21:02 -0700 (PDT)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <stephen@networkplumber.org>, matan@mellanox.com,\n stable@dpdk.org", "Date": "Thu, 12 Mar 2020 10:20:46 -0700", "Message-Id": "<20200312172047.19973-7-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20200312172047.19973-1-stephen@networkplumber.org>", "References": "<20200312172047.19973-1-stephen@networkplumber.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 6/7] examples/tep_termination: block attempts to\n\tuse owned ports", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "If a ethdev port is in use for a sub device, then it should not\nbe allowed in the portmask of application.\n\nFixes: 5b7ba31148a8 (\"ethdev: add port ownership\")\nCc: matan@mellanox.com\nCc: stable@dpdk.org\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n examples/tep_termination/Makefile | 2 ++\n examples/tep_termination/main.c | 2 +-\n examples/tep_termination/meson.build | 1 +\n 3 files changed, 4 insertions(+), 1 deletion(-)", "diff": "diff --git a/examples/tep_termination/Makefile b/examples/tep_termination/Makefile\nindex 645112498d33..f55331fb24c2 100644\n--- a/examples/tep_termination/Makefile\n+++ b/examples/tep_termination/Makefile\n@@ -26,6 +26,7 @@ CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n CFLAGS += -Wno-deprecated-declarations\n \n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n@@ -61,6 +62,7 @@ endif\n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n CFLAGS += -Wno-deprecated-declarations\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n include $(RTE_SDK)/mk/rte.extapp.mk\n endif\ndiff --git a/examples/tep_termination/main.c b/examples/tep_termination/main.c\nindex ab956ad7ce96..928cd226d25a 100644\n--- a/examples/tep_termination/main.c\n+++ b/examples/tep_termination/main.c\n@@ -507,7 +507,7 @@ check_ports_num(unsigned max_nb_ports)\n \t}\n \n \tfor (portid = 0; portid < nb_ports; portid++) {\n-\t\tif (!rte_eth_dev_is_valid_port(ports[portid])) {\n+\t\tif (!rte_eth_dev_is_owned_by(portid, RTE_ETH_DEV_NO_OWNER)) {\n \t\t\tRTE_LOG(INFO, VHOST_PORT,\n \t\t\t\t\"\\nSpecified port ID(%u) is not valid\\n\",\n \t\t\t\tports[portid]);\ndiff --git a/examples/tep_termination/meson.build b/examples/tep_termination/meson.build\nindex f65d689802a3..ddadf1c2aede 100644\n--- a/examples/tep_termination/meson.build\n+++ b/examples/tep_termination/meson.build\n@@ -9,6 +9,7 @@\n if not is_linux\n \tbuild = false\n endif\n+allow_experimental_apis = true\n deps += ['hash', 'vhost']\n cflags += '-Wno-deprecated-declarations'\n sources = files(\n", "prefixes": [ "6/7" ] }{ "id": 66610, "url": "