Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/119154/?format=api
http://patchwork.dpdk.org/api/patches/119154/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20221026102321.260886-1-junfeng.guo@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20221026102321.260886-1-junfeng.guo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221026102321.260886-1-junfeng.guo@intel.com", "date": "2022-10-26T10:23:21", "name": "[v2] net/gve: fix meson build failure on non-Linux platforms", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "6e976a8fcd434c6ff08786bed7307a1ac3a053ae", "submitter": { "id": 1785, "url": "http://patchwork.dpdk.org/api/people/1785/?format=api", "name": "Junfeng Guo", "email": "junfeng.guo@intel.com" }, "delegate": { "id": 319, "url": "http://patchwork.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20221026102321.260886-1-junfeng.guo@intel.com/mbox/", "series": [ { "id": 25438, "url": "http://patchwork.dpdk.org/api/series/25438/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=25438", "date": "2022-10-26T10:23:21", "name": "[v2] net/gve: fix meson build failure on non-Linux platforms", "version": 2, "mbox": "http://patchwork.dpdk.org/series/25438/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/119154/comments/", "check": "warning", "checks": "http://patchwork.dpdk.org/api/patches/119154/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 CC25AA04FD;\n\tWed, 26 Oct 2022 12:25:10 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2567F42B73;\n\tWed, 26 Oct 2022 12:25:09 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id A104840041\n for <dev@dpdk.org>; Wed, 26 Oct 2022 12:25:05 +0200 (CEST)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Oct 2022 03:25:05 -0700", "from dpdk-jf-ntb-one.sh.intel.com ([10.67.111.104])\n by fmsmga004.fm.intel.com with ESMTP; 26 Oct 2022 03:25:02 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1666779905; x=1698315905;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=HI54bn3HhaA7a4Q73qwZN7LSoxPsH1icn2wtfLsVyMs=;\n b=jrHhMd3rOQ0cw4siC2M81z0t9DXvIxDQysPTGZ56PRsTlyaCwvM0vvvD\n sEcVycnOZt4DZTcPJkR6FOvooIWGuOPykjN+eStbdHgEkkvgapS+DviEi\n q7eqynDxhmnqDMQIWSYVmJNBqoYhxqZ9+gQLJWept3F8BvSuxah3lDi/T\n /UpStqkIP7meWUmGLRDZSdi9SOEdtljQHP62RwEY6EIA+/ktgsWrYyOWA\n lvGchkwMKrY3H2NYXSR+L6p2CCvWGT4zY6HeY3QulOyYtRvgapvNTwpm4\n BxLC3oa23XW/EMbb4jGIbRwBqmcXzqUGftAoUyI8HrtfFUAds0HPUUxNA g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10511\"; a=\"306641136\"", "E=Sophos;i=\"5.95,214,1661842800\"; d=\"scan'208\";a=\"306641136\"", "E=McAfee;i=\"6500,9779,10511\"; a=\"700875116\"", "E=Sophos;i=\"5.95,214,1661842800\"; d=\"scan'208\";a=\"700875116\"" ], "X-ExtLoop1": "1", "From": "Junfeng Guo <junfeng.guo@intel.com>", "To": "qi.z.zhang@intel.com, jingjing.wu@intel.com, ferruh.yigit@xilinx.com,\n beilei.xing@intel.com", "Cc": "dev@dpdk.org, xiaoyun.li@intel.com, awogbemila@google.com,\n bruce.richardson@intel.com, hemant.agrawal@nxp.com,\n stephen@networkplumber.org, chenbo.xia@intel.com, helin.zhang@intel.com,\n Junfeng Guo <junfeng.guo@intel.com>", "Subject": "[PATCH v2] net/gve: fix meson build failure on non-Linux platforms", "Date": "Wed, 26 Oct 2022 18:23:21 +0800", "Message-Id": "<20221026102321.260886-1-junfeng.guo@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20221026084244.22083-1-junfeng.guo@intel.com>", "References": "<20221026084244.22083-1-junfeng.guo@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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" }, "content": "Meson build may fail on FreeBSD with gcc and clang, due to missing\nthe header file linux/pci_regs.h on non-Linux platform. Thus, in\nthis patch, we removed the file include and added the used Macros\nderived from linux/pci_regs.h.\n\nFixes: 3047a5ac8e66 (\"net/gve: add support for device initialization\")\n\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n drivers/net/gve/gve_ethdev.c | 1 -\n drivers/net/gve/gve_ethdev.h | 13 +++++++++++++\n 2 files changed, 13 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c\nindex b0f7b98daa..18c879b8d1 100644\n--- a/drivers/net/gve/gve_ethdev.c\n+++ b/drivers/net/gve/gve_ethdev.c\n@@ -1,7 +1,6 @@\n /* SPDX-License-Identifier: BSD-3-Clause\n * Copyright(C) 2022 Intel Corporation\n */\n-#include <linux/pci_regs.h>\n \n #include \"gve_ethdev.h\"\n #include \"base/gve_adminq.h\"\ndiff --git a/drivers/net/gve/gve_ethdev.h b/drivers/net/gve/gve_ethdev.h\nindex 36b334c36b..f6cac3ff2b 100644\n--- a/drivers/net/gve/gve_ethdev.h\n+++ b/drivers/net/gve/gve_ethdev.h\n@@ -11,6 +11,19 @@\n \n #include \"base/gve.h\"\n \n+/*\n+ * Following macros are derived from linux/pci_regs.h, however,\n+ * we can't simply include that header here, as there is no such\n+ * file for non-Linux platform.\n+ */\n+#define PCI_CFG_SPACE_SIZE\t256\n+#define PCI_CAPABILITY_LIST\t0x34\t/* Offset of first capability list entry */\n+#define PCI_STD_HEADER_SIZEOF\t64\n+#define PCI_CAP_SIZEOF\t\t4\n+#define PCI_CAP_ID_MSIX\t\t0x11\t/* MSI-X */\n+#define PCI_MSIX_FLAGS\t\t2\t/* Message Control */\n+#define PCI_MSIX_FLAGS_QSIZE\t0x07FF\t/* Table size */\n+\n #define GVE_DEFAULT_RX_FREE_THRESH 512\n #define GVE_DEFAULT_TX_FREE_THRESH 256\n #define GVE_TX_MAX_FREE_SZ 512\n", "prefixes": [ "v2" ] }{ "id": 119154, "url": "