Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/118368/?format=api
http://patches.dpdk.org/api/patches/118368/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221018111245.890651-9-junfeng.guo@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": "<20221018111245.890651-9-junfeng.guo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221018111245.890651-9-junfeng.guo@intel.com", "date": "2022-10-18T11:12:38", "name": "[v3,08/15] net/idpf: add support for link status update", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "6fcbfcddd8308d7991304f41c4cd7ef5f5ccf12c", "submitter": { "id": 1785, "url": "http://patches.dpdk.org/api/people/1785/?format=api", "name": "Junfeng Guo", "email": "junfeng.guo@intel.com" }, "delegate": { "id": 3961, "url": "http://patches.dpdk.org/api/users/3961/?format=api", "username": "arybchenko", "first_name": "Andrew", "last_name": "Rybchenko", "email": "andrew.rybchenko@oktetlabs.ru" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20221018111245.890651-9-junfeng.guo@intel.com/mbox/", "series": [ { "id": 25280, "url": "http://patches.dpdk.org/api/series/25280/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25280", "date": "2022-10-18T11:12:30", "name": "add support for idpf PMD in DPDK", "version": 3, "mbox": "http://patches.dpdk.org/series/25280/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/118368/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/118368/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 D577CA0560;\n\tTue, 18 Oct 2022 13:15:18 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 561494282D;\n\tTue, 18 Oct 2022 13:14:32 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id BA90D427F4\n for <dev@dpdk.org>; Tue, 18 Oct 2022 13:14:28 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Oct 2022 04:14:28 -0700", "from dpdk-jf-ntb-one.sh.intel.com ([10.67.111.104])\n by FMSMGA003.fm.intel.com with ESMTP; 18 Oct 2022 04:14:26 -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=1666091668; x=1697627668;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=yqm6RznDMb+3GeGiy0qL5E6/aVizb8kRHWg0K7zAx68=;\n b=J4ShXBJPzm9eeDSjEz/4iZj7cxDYuC5BAGgiY3birKxbdJSWcPPhjFNG\n FZLmysoQyGw38oA3Omt9ZeugP/F7YqihwVyLD4+Os3jFud6wKC0qvCg13\n J1h+i4X2vG2pNlFMcmBzVY5vLZ2osWpuX/mdref3RG01g1X0/DR7+PBgs\n qGYtD1eppb7i+TleW+M7D6JIQZM0Q1rjesSjPDuxNvtAAkDQIrLB+KYLd\n Vg/BEXVjjICurImdU1QrOaUFkJCKxA684xwFoYVn1iCHvB31L+EQKZgs8\n bltrE30P5DQCd0ep9j4lF2i6sl/95CwG+mHGlVfR2x42v81wC8UM+VpBq A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10503\"; a=\"293441577\"", "E=Sophos;i=\"5.95,193,1661842800\"; d=\"scan'208\";a=\"293441577\"", "E=McAfee;i=\"6500,9779,10503\"; a=\"717884192\"", "E=Sophos;i=\"5.95,193,1661842800\"; d=\"scan'208\";a=\"717884192\"" ], "X-ExtLoop1": "1", "From": "Junfeng Guo <junfeng.guo@intel.com>", "To": "andrew.rybchenko@oktetlabs.ru, qi.z.zhang@intel.com,\n jingjing.wu@intel.com,\n beilei.xing@intel.com", "Cc": "dev@dpdk.org,\n\tjunfeng.guo@intel.com", "Subject": "[PATCH v3 08/15] net/idpf: add support for link status update", "Date": "Tue, 18 Oct 2022 19:12:38 +0800", "Message-Id": "<20221018111245.890651-9-junfeng.guo@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20221018111245.890651-1-junfeng.guo@intel.com>", "References": "<20220905105828.3190335-1-junfeng.guo@intel.com>\n <20221018111245.890651-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": "Add dev ops link_update.\n\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n drivers/net/idpf/idpf_ethdev.c | 21 +++++++++++++++++++++\n drivers/net/idpf/idpf_ethdev.h | 6 ++++++\n 2 files changed, 27 insertions(+)", "diff": "diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c\nindex 10ae5f14f1..ff0833b462 100644\n--- a/drivers/net/idpf/idpf_ethdev.c\n+++ b/drivers/net/idpf/idpf_ethdev.c\n@@ -34,6 +34,26 @@ static int idpf_dev_info_get(struct rte_eth_dev *dev,\n \t\t\t struct rte_eth_dev_info *dev_info);\n static void idpf_adapter_rel(struct idpf_adapter *adapter);\n \n+int\n+idpf_dev_link_update(struct rte_eth_dev *dev,\n+\t\t __rte_unused int wait_to_complete)\n+{\n+\tstruct idpf_vport *vport = dev->data->dev_private;\n+\tstruct rte_eth_link new_link;\n+\n+\tmemset(&new_link, 0, sizeof(new_link));\n+\n+\tnew_link.link_speed = RTE_ETH_SPEED_NUM_NONE;\n+\n+\tnew_link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX;\n+\tnew_link.link_status = vport->link_up ? RTE_ETH_LINK_UP :\n+\t\tRTE_ETH_LINK_DOWN;\n+\tnew_link.link_autoneg = !(dev->data->dev_conf.link_speeds &\n+\t\t\t\t RTE_ETH_LINK_SPEED_FIXED);\n+\n+\treturn rte_eth_linkstatus_set(dev, &new_link);\n+}\n+\n static const struct eth_dev_ops idpf_eth_dev_ops = {\n \t.dev_supported_ptypes_get\t= idpf_dev_supported_ptypes_get,\n \t.dev_configure\t\t\t= idpf_dev_configure,\n@@ -49,6 +69,7 @@ static const struct eth_dev_ops idpf_eth_dev_ops = {\n \t.tx_queue_setup\t\t\t= idpf_tx_queue_setup,\n \t.tx_queue_release\t\t= idpf_dev_tx_queue_release,\n \t.dev_infos_get\t\t\t= idpf_dev_info_get,\n+\t.link_update\t\t\t= idpf_dev_link_update,\n };\n \n static int\ndiff --git a/drivers/net/idpf/idpf_ethdev.h b/drivers/net/idpf/idpf_ethdev.h\nindex 64da6fd2a5..863d163330 100644\n--- a/drivers/net/idpf/idpf_ethdev.h\n+++ b/drivers/net/idpf/idpf_ethdev.h\n@@ -110,6 +110,10 @@ struct idpf_vport {\n \t/* Chunk info */\n \tstruct idpf_chunks_info chunks_info;\n \n+\t/* Event from ipf */\n+\tbool link_up;\n+\tuint32_t link_speed;\n+\n \tuint16_t devarg_id;\n \tbool stopped;\n \tstruct virtchnl2_vport_stats eth_stats_offset;\n@@ -202,6 +206,8 @@ _atomic_set_cmd(struct idpf_adapter *adapter, enum virtchnl_ops ops)\n }\n \n struct idpf_adapter *idpf_find_adapter(struct rte_pci_device *pci_dev);\n+int idpf_dev_link_update(struct rte_eth_dev *dev,\n+\t\t\t __rte_unused int wait_to_complete);\n void idpf_handle_virtchnl_msg(struct rte_eth_dev *dev);\n int idpf_vc_check_api_version(struct idpf_adapter *adapter);\n int idpf_get_pkt_type(struct idpf_adapter *adapter);\n", "prefixes": [ "v3", "08/15" ] }{ "id": 118368, "url": "