Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/87899/?format=api
http://patches.dpdk.org/api/patches/87899/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210214012013.23165-6-dmitry.kozliuk@gmail.com/", "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": "<20210214012013.23165-6-dmitry.kozliuk@gmail.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210214012013.23165-6-dmitry.kozliuk@gmail.com", "date": "2021-02-14T01:20:12", "name": "[5/6] config: discover libpcap on Windows", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "6bab497825cab667557a524c4b0f8dc1159dd711", "submitter": { "id": 1581, "url": "http://patches.dpdk.org/api/people/1581/?format=api", "name": "Dmitry Kozlyuk", "email": "dmitry.kozliuk@gmail.com" }, "delegate": { "id": 24651, "url": "http://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210214012013.23165-6-dmitry.kozliuk@gmail.com/mbox/", "series": [ { "id": 15256, "url": "http://patches.dpdk.org/api/series/15256/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15256", "date": "2021-02-14T01:20:07", "name": "net/pcap: build on Windows", "version": 1, "mbox": "http://patches.dpdk.org/series/15256/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/87899/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/87899/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 70620A0546;\n\tSun, 14 Feb 2021 02:21:07 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AA96822A1FA;\n\tSun, 14 Feb 2021 02:20:33 +0100 (CET)", "from mail-lf1-f41.google.com (mail-lf1-f41.google.com\n [209.85.167.41])\n by mails.dpdk.org (Postfix) with ESMTP id 369FA1CC502\n for <dev@dpdk.org>; Sun, 14 Feb 2021 02:20:29 +0100 (CET)", "by mail-lf1-f41.google.com with SMTP id f1so5149416lfu.3\n for <dev@dpdk.org>; Sat, 13 Feb 2021 17:20:29 -0800 (PST)", "from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru.\n [37.110.65.23])\n by smtp.gmail.com with ESMTPSA id h11sm2237648lfd.243.2021.02.13.17.20.27\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 13 Feb 2021 17:20:27 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=Whr/pMS4CpIAeA7lnJmuhxngW4VKQ3qReJqGWS8gbbg=;\n b=RUTFUCK1YT+5EKK8CEaR4uO2AZuY+UXVzJD2RP6csps5JXiPILDv5fsFRPI/pb3Jyv\n VjltmC2icrzc/rpbYQpMyd8VljlKAWUMwcaMWJl76dz4kk4lGAKJ5iB4XPihRU+Cg0vs\n Rm4QEcs7vNNzyZfgf0a3qf3a0l4QVKLkUyPCWoMTtq4jdXg1afQp4gtBSrrzy703mjcE\n 4H/+sUm4h6GIrh0MMcBm7f+P/tk4Q6yJciz31NTJyiRQdyr/ImoAIwib9BCCCr62ZFPK\n LgcNn7t2DMe8COZoQHvUtwS3ptWxSY0NDY7IhzghXwN8tm8UITuS+TnrmPdc06QjDX8q\n wc0Q==", "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=Whr/pMS4CpIAeA7lnJmuhxngW4VKQ3qReJqGWS8gbbg=;\n b=kF/MfFTeQ8xc/cdj4lMNhNQGUxZvaPsLIAydtvoCEJOGuSW35Yg8QghiqGxNgA4Y0N\n ZN5mZDtmDjS9fPDV1678qQ/g02PHRsswNq4f8AjKo3ChhXSbagB+KNdh+Bgj1FcwUvVv\n xj8EQvS2lEfAy4Sh6jWvCWicr9WlidyyU6sf51KJ3vImCl66n+mqVwbTvce+cO1MRkbO\n EnB5YatyEPT847/2m67CQrE7nVhF6e3JM9OQIu0BCFgAtlrx5zCY0hQYSuEZigWcIIc9\n BKCwi53Ah8hiSChKfGbkFhsA/yFE+wYtOzFol3uAxaFz0z8tYj0GaZPxk0lXk789lutu\n cHMQ==", "X-Gm-Message-State": "AOAM531dzPee9BZZZLivh/6WbYBP2M55dsGlaX79PRWtpY0YSycYT/1S\n WH02YYjEbS/DMfTsKw/ksyE/duv/haZhhQ==", "X-Google-Smtp-Source": "\n ABdhPJxpIH4LMxLmwOlDNF97Liaj+sy4UIV3J1g41Y05KJcPmPBiZxqhDUD1fdnmtUcyLQr070TPCA==", "X-Received": "by 2002:a05:6512:3184:: with SMTP id\n i4mr5341365lfe.314.1613265628539;\n Sat, 13 Feb 2021 17:20:28 -0800 (PST)", "From": "Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>", "To": "dev@dpdk.org", "Cc": "Tyler Retzlaff <roretzla@microsoft.com>,\n Mike Wells <mike.wells@telchemy.com>,\n Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>,\n Bruce Richardson <bruce.richardson@intel.com>", "Date": "Sun, 14 Feb 2021 04:20:12 +0300", "Message-Id": "<20210214012013.23165-6-dmitry.kozliuk@gmail.com>", "X-Mailer": "git-send-email 2.29.2", "In-Reply-To": "<20210214012013.23165-1-dmitry.kozliuk@gmail.com>", "References": "<20210214012013.23165-1-dmitry.kozliuk@gmail.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 5/6] config: discover libpcap on Windows", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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": "WinPcap or Npcap, can be installed anywhere.\nAdd a Meson option to specify SDK path.\n\nSigned-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>\n---\n config/meson.build | 21 ++++++++++++++++++---\n meson_options.txt | 6 ++++--\n 2 files changed, 22 insertions(+), 5 deletions(-)", "diff": "diff --git a/config/meson.build b/config/meson.build\nindex 3cf560b8a..6aae8276c 100644\n--- a/config/meson.build\n+++ b/config/meson.build\n@@ -178,9 +178,24 @@ if not pcap_dep.found()\n \t# pcap got a pkg-config file only in 1.9.0\n \tpcap_dep = cc.find_library('pcap', required: false)\n endif\n-if pcap_dep.found() and cc.has_header('pcap.h', dependencies: pcap_dep)\n-\tdpdk_conf.set('RTE_PORT_PCAP', 1)\n-\tdpdk_extra_ldflags += '-lpcap'\n+if is_windows\n+\t# npcap SDK can be installed anywhere\n+\tpcap_sdk = get_option('pcap_sdk')\n+\tif pcap_sdk != ''\n+\t\tpcap_ldflags = ['-L@0@/Lib/x64'.format(pcap_sdk), '-lwpcap']\n+\t\tpcap_dep = declare_dependency(\n+\t\t\tcompile_args: ['-I@0@/Include'.format(pcap_sdk)],\n+\t\t\tlink_args: pcap_ldflags)\n+\tendif\n+\tif pcap_dep.found()\n+\t\tdpdk_conf.set('RTE_PORT_PCAP', 1)\n+\t\tdpdk_extra_ldflags += pcap_ldflags\n+\tendif\n+else\n+\tif pcap_dep.found() and cc.has_header('pcap.h', dependencies: pcap_dep)\n+\t\tdpdk_conf.set('RTE_PORT_PCAP', 1)\n+\t\tdpdk_extra_ldflags += '-lpcap'\n+\tendif\n endif\n \n # for clang 32-bit compiles we need libatomic for 64-bit atomic ops\ndiff --git a/meson_options.txt b/meson_options.txt\nindex 6eff62e47..d74146d3a 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -10,6 +10,8 @@ option('enable_docs', type: 'boolean', value: false,\n \tdescription: 'build documentation')\n option('enable_kmods', type: 'boolean', value: false,\n \tdescription: 'build kernel modules')\n+option('enable_trace_fp', type: 'boolean', value: false,\n+\tdescription: 'enable fast path trace points.')\n option('examples', type: 'string', value: '',\n \tdescription: 'Comma-separated list of examples to build by default')\n option('flexran_sdk', type: 'string', value: '',\n@@ -28,8 +30,8 @@ option('max_lcores', type: 'integer', value: 128,\n \tdescription: 'maximum number of cores/threads supported by EAL')\n option('max_numa_nodes', type: 'integer', value: 32,\n \tdescription: 'maximum number of NUMA nodes supported by EAL')\n-option('enable_trace_fp', type: 'boolean', value: false,\n-\tdescription: 'enable fast path trace points.')\n+option('pcap_sdk', type: 'string', value: '',\n+\tdescription: 'Path to libpcap SDK used on Windows')\n option('tests', type: 'boolean', value: true,\n \tdescription: 'build unit tests')\n option('use_hpet', type: 'boolean', value: false,\n", "prefixes": [ "5/6" ] }{ "id": 87899, "url": "