Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/85666/?format=api
https://patches.dpdk.org/api/patches/85666/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20201223074921.4951-1-haiyangx.zhao@intel.com/", "project": { "id": 3, "url": "https://patches.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20201223074921.4951-1-haiyangx.zhao@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20201223074921.4951-1-haiyangx.zhao@intel.com", "date": "2020-12-23T07:49:21", "name": "[V1] doc/dts_gsg: add support_igb_uio", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "2abfa68f23f34f7739f74c06ec115ea6668db707", "submitter": { "id": 1978, "url": "https://patches.dpdk.org/api/people/1978/?format=api", "name": "Zhao, HaiyangX", "email": "haiyangx.zhao@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20201223074921.4951-1-haiyangx.zhao@intel.com/mbox/", "series": [ { "id": 14432, "url": "https://patches.dpdk.org/api/series/14432/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=14432", "date": "2020-12-23T07:49:21", "name": "[V1] doc/dts_gsg: add support_igb_uio", "version": 1, "mbox": "https://patches.dpdk.org/series/14432/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/85666/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/85666/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-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 CA552A052A;\n\tWed, 23 Dec 2020 08:55:43 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A03C0CA39;\n\tWed, 23 Dec 2020 08:55:42 +0100 (CET)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by dpdk.org (Postfix) with ESMTP id 2B30ACA37\n for <dts@dpdk.org>; Wed, 23 Dec 2020 08:55:39 +0100 (CET)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Dec 2020 23:55:38 -0800", "from unknown (HELO localhost.localdomain) ([10.240.183.57])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Dec 2020 23:55:36 -0800" ], "IronPort-SDR": [ "\n qvgb4dOZ0U15ejjGUWCBWVFswNQHltLKmKVvBzjptfHOswBvvwHmAhuLWFkwyPNLjVgOVNSU1i\n t4mF+qLOkwOA==", "\n EB3u82PVtuFn2rSHRgrrly7sDWu3jbVxxiy71tvYVjY99Y5C1QmTVe+lua7YB4wYOh2pBTZ3e5\n egH/CjViJ+ZQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9843\"; a=\"175203029\"", "E=Sophos;i=\"5.78,441,1599548400\"; d=\"scan'208\";a=\"175203029\"", "E=Sophos;i=\"5.78,441,1599548400\"; d=\"scan'208\";a=\"344948368\"" ], "From": "Haiyang Zhao <haiyangx.zhao@intel.com>", "To": "lijuan.tu@intel.com,\n\tdts@dpdk.org", "Cc": "Haiyang Zhao <haiyangx.zhao@intel.com>", "Date": "Wed, 23 Dec 2020 15:49:21 +0800", "Message-Id": "<20201223074921.4951-1-haiyangx.zhao@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dts] [PATCH V1] doc/dts_gsg: add support_igb_uio", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org", "Sender": "\"dts\" <dts-bounces@dpdk.org>" }, "content": "this doc is to guide user to enable testing DPDK with igb_uio.\n\nSigned-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>\n---\n doc/dts_gsg/index.rst | 1 +\n doc/dts_gsg/support_igb_uio.rst | 102 ++++++++++++++++++++++++++++++++\n 2 files changed, 103 insertions(+)\n create mode 100644 doc/dts_gsg/support_igb_uio.rst", "diff": "diff --git a/doc/dts_gsg/index.rst b/doc/dts_gsg/index.rst\nindex 16da30e3..0c84f466 100644\n--- a/doc/dts_gsg/index.rst\n+++ b/doc/dts_gsg/index.rst\n@@ -48,3 +48,4 @@ Getting Started Guide\n trex\n trex_known_issue\n usage_of_create_eal_and_start_testpmd\n+ support_igb_uio\ndiff --git a/doc/dts_gsg/support_igb_uio.rst b/doc/dts_gsg/support_igb_uio.rst\nnew file mode 100644\nindex 00000000..ca48a8f9\n--- /dev/null\n+++ b/doc/dts_gsg/support_igb_uio.rst\n@@ -0,0 +1,102 @@\n+Test DPDK based on igb_uio\n+==========================\n+\n+The kernel module igb_uio is moved to the dpdk-kmods repository in the\n+/linux/igb_uio/ directory snice DPDK 20.11 (commit: 56bb5841fd06).\n+The most easy way to test DPDK in DTS based on igb_uio is to add igb_uio\n+source code back to dpdk.\n+\n+\n+Get Source Code\n+---------------\n+\n+Get DPDK::\n+\n+ git clone git://dpdk.org/dpdk\n+ git clone http://dpdk.org/git/dpdk\n+\n+Get igb_uio::\n+\n+ git clone http://dpdk.org/git/dpdk-kmods\n+ git clone git://dpdk.org/dpdk-kmods\n+\n+Integrate igb_uio into DPDK\n+---------------------------\n+\n+Assume you have cloned the dpdk and dpdk-kmods source code\n+in ./dpdk and ./dpdk-kmods.\n+\n+#. Copy dpdk-kmods/linux/igb_uio/ to dpdk/kernel/linux/::\n+\n+ [root@dts linux]# cp -r ./dpdk-kmods/linux/igb_uio /root/dpdk/kernel/linux/\n+ [root@dts linux]# ls ./dpdk/kernel/linux/\n+ igb_uio kni meson.build\n+\n+#. enable igb_uio build in meson:\n+\n+* add igb_uio in dpdk/kernel/linux/meson.build subdirs as below::\n+\n+ subdirs = ['kni', 'igb_uio']\n+\n+.. note::\n+\n+ igb_uio will be added into compile list when it is added in subdirs.\n+\n+\n+* create a file of meson.build in dpdk/kernel/linux/igb_uio/ as below::\n+\n+ # SPDX-License-Identifier: BSD-3-Clause\n+ # Copyright(c) 2017 Intel Corporation\n+\n+ mkfile = custom_target('igb_uio_makefile',\n+ output: 'Makefile',\n+ command: ['touch', '@OUTPUT@'])\n+\n+ custom_target('igb_uio',\n+ input: ['igb_uio.c', 'Kbuild'],\n+ output: 'igb_uio.ko',\n+ command: ['make', '-C', kernel_dir + '/build',\n+ 'M=' + meson.current_build_dir(),\n+ 'src=' + meson.current_source_dir(),\n+ 'EXTRA_CFLAGS=-I' + meson.current_source_dir() +\n+ '/../../../lib/librte_eal/include',\n+ 'modules'],\n+ depends: mkfile,\n+ install: true,\n+ install_dir: kernel_dir + '/extra/dpdk',\n+ build_by_default: get_option('enable_kmods'))\n+\n+.. note::\n+\n+ DPDK is using meson build, create meson.build so that igb_uio can be built.\n+\n+DTS configuration\n+-----------------\n+\n+#. Pack the dpdk into dpdk.tar.gz and copy into dts/dep::\n+\n+ tar -zcvf dpdk.tar.gz dpdk\n+ cp dpdk.tar.gz ~/dts/dep\n+\n+\n+#. config drivername=igb_uio in execution.cfg::\n+\n+ [Execution1]\n+ crbs=127.0.0.1\n+ drivername=igb_uio\n+ build_type=meson\n+ test_suites=\n+ checksum_offload,\n+ targets=\n+ x86_64-native-linuxapp-gcc\n+ parameters=nic_type=cfg:func=true\n+\n+#. configure dts with other requirements (not mentioned here) and now start dts::\n+\n+ ./dts\n+\n+.. note ..\n+\n+ dts parameter \"-s\" means skip setup, it won't unpack dep/dpdk.tar.gz\n+ to the default directory `/root/dpdk`, but use dpdk already there.\n+ so copy the integrated dpdk to `/root/dpdk` if with `-s`\n\\ No newline at end of file\n", "prefixes": [ "V1" ] }{ "id": 85666, "url": "