Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/9986/?format=api
http://patchwork.dpdk.org/api/patches/9986/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1453203972-24855-11-git-send-email-sshukla@mvista.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": "<1453203972-24855-11-git-send-email-sshukla@mvista.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1453203972-24855-11-git-send-email-sshukla@mvista.com", "date": "2016-01-19T11:46:11", "name": "[dpdk-dev,v5,10/11] virtio: pci: add dummy func definition for in/outb for non-x86 arch", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "56ad13e4edd9d9c5d69ffde456a4e49634db5a06", "submitter": { "id": 383, "url": "http://patchwork.dpdk.org/api/people/383/?format=api", "name": "Santosh Shukla", "email": "sshukla@mvista.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1453203972-24855-11-git-send-email-sshukla@mvista.com/mbox/", "series": [], "comments": "http://patchwork.dpdk.org/api/patches/9986/comments/", "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/9986/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 3B4EC91B8;\n\tTue, 19 Jan 2016 12:47:10 +0100 (CET)", "from mail-pf0-f179.google.com (mail-pf0-f179.google.com\n\t[209.85.192.179]) by dpdk.org (Postfix) with ESMTP id B1BED8E8F\n\tfor <dev@dpdk.org>; Tue, 19 Jan 2016 12:47:07 +0100 (CET)", "by mail-pf0-f179.google.com with SMTP id e65so174780935pfe.0\n\tfor <dev@dpdk.org>; Tue, 19 Jan 2016 03:47:07 -0800 (PST)", "from santosh-Latitude-E5530-non-vPro.mvista.com ([111.93.218.67])\n\tby smtp.gmail.com with ESMTPSA id\n\t75sm41014170pfj.20.2016.01.19.03.47.03\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 19 Jan 2016 03:47:06 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=mvista-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=KyOkoathv1A+jNkyQqKcO8aKUu2zDSzDph0IyKhDijM=;\n\tb=GrLBQ6+xgZCo3giQitqbSPKyTcOuMVnoTKg0TzwkgaYyYexMcOnztMuXJAmhuGONaJ\n\tRR9HVRg1K4/jyHMK1xvSEprnnkrHGL6taMM20nFgCWLFIikrSoaM5sm2us5d7DaYPYZH\n\toCPj7yuag9mhkX1WHP4qx4kL473qR+Z8RfYJTvKAiHZTkdomGdzhRB/o6UVFWoEel/8x\n\tN0Cg8whV58jX8Sa/Emm24pQMnnGF1gMZSUzIILwnSVBQk/8JumNWjxDkJyMSDPL5qnsQ\n\twGlfHMbMgZ2C7eemN4zz8p1QbRJlZXfjHJGhBybTP//8vB8yQtiFog54CMIeZbvzO+F3\n\tHO4g==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=KyOkoathv1A+jNkyQqKcO8aKUu2zDSzDph0IyKhDijM=;\n\tb=XmOmgBrLHT2LOMQbNY29r89IssTLHoNqC8QGto41DNPAuAZQSDtlf6QPHzArOpKnU1\n\tRk6gzTPFlNn+bzIdO+F2ny2/MM2Zd9VKgeoi0m5Hh+pXOebFJMrT7XLB5JCS6yR0+CRl\n\tK1CtPZFiqSlGj0GWntVvQ+V0Gt2wSXYI41frFdPfrBNb19TeFqqw+CglzLdZw40nKLTl\n\tQsONFyWcbQMzZr/qOZ7uN89pa8+um6vwcai0jf69zCxn3bn15m5Qzhj8XsVTPCoSW61x\n\tI7iC5N1IY+ginUb/qQUhdn4gzv2Yi3tCM27AejDXldtxRPnO8erLO3gecgymc7q1Jvzu\n\tVY4A==", "X-Gm-Message-State": "ALoCoQmfyXWKTXvb2FAfhqoCsmhEVjjYaTBcKpLpsc2so2DCOzkCr9pOKx3yT0I+HAglr25MIRrfnYoiQzFcEGTvqr/UfKNvuA==", "X-Received": "by 10.98.65.90 with SMTP id o87mr43098278pfa.115.1453204027165; \n\tTue, 19 Jan 2016 03:47:07 -0800 (PST)", "From": "Santosh Shukla <sshukla@mvista.com>", "To": "dev@dpdk.org", "Date": "Tue, 19 Jan 2016 17:16:11 +0530", "Message-Id": "<1453203972-24855-11-git-send-email-sshukla@mvista.com>", "X-Mailer": "git-send-email 1.7.9.5", "In-Reply-To": "<1453203972-24855-1-git-send-email-sshukla@mvista.com>", "References": "<1453203972-24855-1-git-send-email-sshukla@mvista.com>", "Subject": "[dpdk-dev] [PATCH v5 10/11] virtio: pci: add dummy func definition\n\tfor in/outb for non-x86 arch", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "For non-x86 arch, Compiler will throw build error for in/out apis. Including\ndummy api function so to pass build.\n\nNote that: For virtio to work for non-x86 arch - RTE_EAL_VFIO is the only\nsupported method. RTE_EAL_IGB_UIO is not supported for non-x86 arch.\n\nSo, Virtio support for arch and supported interface by that arch:\n\nARCH IGB_UIO \tVFIO\nx86\t\tY\tY\nARM64\t\tN/A\tY\nPPC_64\t\tN/A\tY\t(Not tested but likely should work, as vfio is\narch independent)\n\nNote: Applicable for virtio spec 0.95\n\nSigned-off-by: Santosh Shukla <sshukla@mvista.com>\n---\n drivers/net/virtio/virtio_pci.h | 46 +++++++++++++++++++++++++++++++++++++++\n 1 file changed, 46 insertions(+)", "diff": "diff --git a/drivers/net/virtio/virtio_pci.h b/drivers/net/virtio/virtio_pci.h\nindex f550d22..b88f9ec 100644\n--- a/drivers/net/virtio/virtio_pci.h\n+++ b/drivers/net/virtio/virtio_pci.h\n@@ -46,6 +46,7 @@\n #endif\n \n #include <rte_ethdev.h>\n+#include \"virtio_logs.h\"\n \n struct virtqueue;\n \n@@ -320,6 +321,51 @@ outl_p(unsigned int data, unsigned int port)\n }\n #endif\n \n+#if !defined(RTE_ARCH_X86_64) && !defined(RTE_ARCH_I686) && \\\n+\t\tdefined(RTE_EXEC_ENV_LINUXAPP)\n+static inline uint8_t\n+inb(unsigned long addr __rte_unused)\n+{\n+\tPMD_INIT_LOG(ERR, \"inb() not supported for this RTE_ARCH\\n\");\n+\treturn 0;\n+}\n+\n+static inline uint16_t\n+inw(unsigned long addr __rte_unused)\n+{\n+\tPMD_INIT_LOG(ERR, \"inw() not supported for this RTE_ARCH\\n\");\n+\treturn 0;\n+}\n+\n+static inline uint32_t\n+inl(unsigned long addr __rte_unused)\n+{\n+\tPMD_INIT_LOG(ERR, \"in() not supported for this RTE_ARCH\\n\");\n+\treturn 0;\n+}\n+\n+static inline void\n+outb_p(unsigned char data __rte_unused, unsigned int port __rte_unused)\n+{\n+\tPMD_INIT_LOG(ERR, \"outb_p() not supported for this RTE_ARCH\\n\");\n+\treturn;\n+}\n+\n+static inline void\n+outw_p(unsigned short data __rte_unused, unsigned int port __rte_unused)\n+{\n+\tPMD_INIT_LOG(ERR, \"outw_p() not supported for this RTE_ARCH\\n\");\n+\treturn;\n+}\n+\n+static inline void\n+outl_p(unsigned int data __rte_unused, unsigned int port __rte_unused)\n+{\n+\tPMD_INIT_LOG(ERR, \"outl_p() not supported for this RTE_ARCH\\n\");\n+\treturn;\n+}\n+#endif\n+\n static inline int\n vtpci_with_feature(struct virtio_hw *hw, uint64_t bit)\n {\n", "prefixes": [ "dpdk-dev", "v5", "10/11" ] }{ "id": 9986, "url": "