Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/47055/?format=api
https://patches.dpdk.org/api/patches/47055/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20181019002358.17132-1-dg@adax.com/", "project": { "id": 1, "url": "https://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": "<20181019002358.17132-1-dg@adax.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20181019002358.17132-1-dg@adax.com", "date": "2018-10-19T00:23:53", "name": "[v5,0/5] kni: add API to set link status on kernel interface", "commit_ref": null, "pull_url": null, "state": null, "archived": false, "hash": null, "submitter": { "id": 1040, "url": "https://patches.dpdk.org/api/people/1040/?format=api", "name": "Dan Gora", "email": "dg@adax.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20181019002358.17132-1-dg@adax.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/47055/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/47055/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 95D817D34;\n\tFri, 19 Oct 2018 02:24:14 +0200 (CEST)", "from mail-qt1-f196.google.com (mail-qt1-f196.google.com\n\t[209.85.160.196]) by dpdk.org (Postfix) with ESMTP id A2FB07D05\n\tfor <dev@dpdk.org>; Fri, 19 Oct 2018 02:24:12 +0200 (CEST)", "by mail-qt1-f196.google.com with SMTP id l41-v6so36463550qtl.8\n\tfor <dev@dpdk.org>; Thu, 18 Oct 2018 17:24:12 -0700 (PDT)", "from snappy.local.lan ([191.205.43.134])\n\tby smtp.gmail.com with ESMTPSA id\n\ty124-v6sm12963926qke.22.2018.10.18.17.24.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 18 Oct 2018 17:24:10 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=a5WCm4J4S0PU3gcWjFm5+6b1G0jAqM58/A9pcPaQG/o=;\n\tb=fuRL0mbcBwkjRVuD26rgyVoBGrcLNh3MBXxyT2+Dvc7agkb/46zNAoShuS8IESnBFp\n\tzcmQrpbk5hocsQAct2KZB/CDPHiCDuclx1SGv4a184q8yLtAbvNodfyhSg2tZXEZRXql\n\tIGyv4FZPSPQwJE4YzFOksm7fLcLnigr+Ra9Z8OUvCTDarLhVEp15iPShqEbEDxKnmv2+\n\tYjTtpsIKA0LWLH485HxZDnzB+DXbdRjMnZ4bGKHbHYPVG367A/uzqUlymnp7q2BNmZFG\n\t/M7nkNZCUOoBTnIKqqykoBrQOcYmnGySvmqoxB5Dm0LtoRfAfNoujHkquZpC7eTG5Cma\n\t+ObA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references:mime-version:content-transfer-encoding;\n\tbh=a5WCm4J4S0PU3gcWjFm5+6b1G0jAqM58/A9pcPaQG/o=;\n\tb=LNgzOoI+lBzBpLt/g5zUbQOR4sY9FiA2d24dLVjrlKTPcTVa/Dip4tILRXxqhUre9v\n\tBunnOcCMS9BnytwRlLBphEgKgOFlrYWNzcoH3mW5bnvm0YUIpkAFU0P/vx4HAljdVt+t\n\t7K4yXALPMej9m2TX5+k1YuZuHVZ3CpS/Ne0AY8GjaA3hk7yCha6A9JPuaPSWecvfir0H\n\tKvBQoOdd7BReIdesXNMubBB9QByp3h0yxyeQD5vYomQE5U/tZw8GaEwSuu9Ribp1lJ4j\n\tgmBcc8628m8KSJlXFVtSGZ0iHD+gFCHLMxbGThY/WtYCIeFl/kGjLGrY3p1vYvxlb4n0\n\tnKDg==", "X-Gm-Message-State": "ABuFfogq5Co8R0sGZxlMc9MPceuicgR66pCKXFp44WFvTA4rTMOcqqtb\n\tPsQGz00SLkApklAzLo+oYAdr7KbL", "X-Google-Smtp-Source": "ACcGV62KLKasObOnk1kDbsYWEELdlKCgSh1K4P0+8gNO8TW1P7ya68y+/RIbRElODBoX8eZnPFLyhw==", "X-Received": "by 2002:a0c:95e6:: with SMTP id\n\tt35mr32707711qvt.163.1539908651435; \n\tThu, 18 Oct 2018 17:24:11 -0700 (PDT)", "From": "Dan Gora <dg@adax.com>", "To": "dev@dpdk.org", "Cc": "Igor Ryzhov <iryzhov@nfware.com>,\n\tStephen Hemminger <stephen@networkplumber.org>,\n\tFerruh Yigit <ferruh.yigit@intel.com>, Dan Gora <dg@adax.com>", "Date": "Thu, 18 Oct 2018 21:23:53 -0300", "Message-Id": "<20181019002358.17132-1-dg@adax.com>", "X-Mailer": "git-send-email 2.19.0", "In-Reply-To": "<20180911232906.18352-1-dg@adax.com>", "References": "<20180911232906.18352-1-dg@adax.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v5 0/5] kni: add API to set link status on kernel\n\tinterface", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Hi All,\n\nAttached is version 5 of a patchset to add a new API function to\nset the link status on kernel interfaces created with the KNI kernel\nmodule.\n\nv5\n====\n* Update Kernel NIC Interface document with new rte_kni option, move\n kernel module parameter description here from KNI sample app\n document, general cleanup.\n\n* Update Kernel NIC Interface sample application (kni) document\n with new command line parameter, remove documentation for rte_kni\n kernel module but add reference to it, general cleanup.\n\n* Change link status change sample rate for KNI example app to 500ms\n from 100ms.\n\n* Fix bug in parameter parsing in v4 in rte_kni kernel module.\n\n* Fix output formatting of optional parameters for rte_kni with\n modinfo.\n\n* Fix permissions of optional parameters for rte_kni.\n\n* Squash patch to add test for rte_kni_update_link into patch\n introducing the API function.\n\n> v4\n> ====\n> * Rework rte_kni_update_link to only take linkup/linkdown as parameter,\n> return previous link state, and remove log messages.\n> \n> * Update patch to set default carrier state to make default carrier\n> state configurable by passing the 'carrier=[on|off]' option to\n> the rte_kni kernel module. This is necessary in order to allow\n> applications which use KNI as pure virtual interfaces without\n> corresponding physical ethernet port to use the interfaces without\n> having to set the carrier state to 'on' via rte_kni_update_link()\n> or by writing to /sys/devices/virtual/net/<ifaceX>/carrier.\n> Note that the default is 'off'.\n> \n> * Add command line flag '-m' to examples/kni to continuously monitor\n> and update the KNI interface link status according to the link\n> status of the corresponding physical ethernet port.\n> \n> \n> v3\n> ====\n> * Use separate function to test rte_kni_update_link() in 'test' app.\n> \n> * Separate changes to 'test' app into separate patch to facilitate\n> possible merge with https://patches.dpdk.org/patch/44730/\n> \n> * Remove changes to set KNI interfaces to 'up' in example/kni\n> \n> v2\n> ====\n> \n> * Fix bug where \"Fixed\" and \"AutoNeg\" were transposed in the link\n> status log message.\n> \n> * Add rte_kni_update_link() to rte_kni_version.map\n> \n> * Add rte_kni_update_link() tests to kni_autotest\n> \n> * Update examples/kni to continuously monitor link status and\n> update the corresponding kernel interface with\n> rte_kni_update_link().\n> \n> * Minor improvements to examples/kni: Add log message showing how\n> to show/zero stats. Improve zeroing statistics.\n> \n> Note that checkpatches.sh compains about patch 1/5, but this appears\n> to be a bug with check-symbol-change or something. If I move the\n> fragment of the patch modifying rte_kni_version.map to the bottom of\n> the patch file, it doesn't complain any more... I just don't really\n> have time to investigate this right now.\n \nthanks\ndan\n\n\n\nDan Gora (5):\n kni: add API to set link status on kernel interface\n kni: set default carrier state of interface\n examples/kni: monitor and update link status continually\n examples/kni: add log msgs to show and clear stats\n examples/kni: improve zeroing statistics\n\n .../prog_guide/kernel_nic_interface.rst | 203 ++++++++++----\n .../sample_app_ug/kernel_nic_interface.rst | 249 +++++++++++-------\n examples/kni/Makefile | 2 +\n examples/kni/main.c | 92 ++++++-\n kernel/linux/kni/kni_dev.h | 3 +\n kernel/linux/kni/kni_misc.c | 57 +++-\n kernel/linux/kni/kni_net.c | 5 +\n lib/librte_kni/rte_kni.c | 41 +++\n lib/librte_kni/rte_kni.h | 20 ++\n lib/librte_kni/rte_kni_version.map | 6 +\n test/test/test_kni.c | 77 ++++++\n 11 files changed, 598 insertions(+), 157 deletions(-)", "diff": null, "prefixes": [ "v5", "0/5" ] }{ "id": 47055, "url": "