Cover Detail
Show a cover letter.
GET /api/covers/43628/?format=api
http://patches.dpdk.org/api/covers/43628/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/cover/20180808070545.13510-1-qi.z.zhang@intel.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": "<20180808070545.13510-1-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180808070545.13510-1-qi.z.zhang@intel.com", "date": "2018-08-08T07:05:45", "name": "[RFC,0/4] ethdev: claim device reset as async", "submitter": { "id": 504, "url": "http://patches.dpdk.org/api/people/504/?format=api", "name": "Qi Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/cover/20180808070545.13510-1-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 935, "url": "http://patches.dpdk.org/api/series/935/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=935", "date": "2018-08-08T07:05:45", "name": "ethdev: claim device reset as async", "version": 1, "mbox": "http://patches.dpdk.org/series/935/mbox/" } ], "comments": "http://patches.dpdk.org/api/covers/43628/comments/", "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 908D91E35;\n\tWed, 8 Aug 2018 09:05:11 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 491E3100C\n\tfor <dev@dpdk.org>; Wed, 8 Aug 2018 09:05:09 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t08 Aug 2018 00:05:08 -0700", "from dpdk51.sh.intel.com ([10.67.110.190])\n\tby orsmga008.jf.intel.com with ESMTP; 08 Aug 2018 00:05:00 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.51,456,1526367600\"; d=\"scan'208\";a=\"63456995\"", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "thomas@monjalon.net, konstantin.ananyev@intel.com,\n\tdeclan.doherty@intel.com, ferruh.yigit@intel.com", "Cc": "dev@dpdk.org, benjamin.h.shelton@intel.com, narender.vangati@intel.com, \n\tbeilei.xing@intel.com, wenzhuo.lu@intel.com,\n\tQi Zhang <qi.z.zhang@intel.com>", "Date": "Wed, 8 Aug 2018 15:05:45 +0800", "Message-Id": "<20180808070545.13510-1-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.13.6", "Subject": "[dpdk-dev] [RFC 0/4] ethdev: claim device reset as async", "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": "Device reset may have the dependency, for example, a VF reset expects\nPF ready, or a NIC function as a part of a SOC need to wait for other\nparts of the system be ready, these are time-consuming tasks and will\nblock current thread.\n\nSo we claimed rte_eth_dev_reset as an async API, that makes things\neasy for an application that what to reset the device from the interrupt\nthread since typically a RTE_ETH_EVENT_INTR_RESET handler is invoked\nin interrupt thread.\n\nPMD is responsrible to implement ops->dev_reset in an async way, it\ncan offload the whole task into a separate thread, or maybe just pending\non hardware interrupt as reset dependency ready or start a timely alarm\nto poll register status as a background daemon. PMD is also\nresponsible to raise the RTE_ETH_EVENT_RESET_COMPLETE event to notify the\napplication when reset is complete.\n\nApplication should not assume device reset is finished after\nrte_eth_dev_reset return, it should always wait for a\nRTE_ETH_EVENT_RESET_COMPLETE event and check the reset result.\n\nQi Zhang (4):\n ethdev: claim device reset as async\n net/i40e: enable async device reset\n net/ixgbe: enable async device reset\n testpmd: enable async device reset\n\n app/test-pmd/testpmd.c | 55 +++++++++++++++++++++++++++++++++++++++-\n drivers/net/i40e/i40e_ethdev.c | 28 ++++++++++++++++----\n drivers/net/ixgbe/ixgbe_ethdev.c | 26 ++++++++++++++-----\n lib/librte_ethdev/rte_ethdev.h | 33 ++++++++++++------------\n 4 files changed, 114 insertions(+), 28 deletions(-)" }{ "id": 43628, "url": "