Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/78904/?format=api
https://patches.dpdk.org/api/patches/78904/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200927072626.28374-2-robinx.zhang@intel.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": "<20200927072626.28374-2-robinx.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200927072626.28374-2-robinx.zhang@intel.com", "date": "2020-09-27T07:26:19", "name": "[1/8] net/iavf: use link status helper functions", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "955b429d741d6feff046d078600fe99216f75139", "submitter": { "id": 2004, "url": "https://patches.dpdk.org/api/people/2004/?format=api", "name": "Robin Zhang", "email": "robinx.zhang@intel.com" }, "delegate": { "id": 1540, "url": "https://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200927072626.28374-2-robinx.zhang@intel.com/mbox/", "series": [ { "id": 12526, "url": "https://patches.dpdk.org/api/series/12526/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=12526", "date": "2020-09-27T07:26:18", "name": "feature porting from i40evf to iavf", "version": 1, "mbox": "https://patches.dpdk.org/series/12526/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/78904/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/78904/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 94108A04BC;\n\tSun, 27 Sep 2020 09:47:23 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C8E2B1D6A1;\n\tSun, 27 Sep 2020 09:47:21 +0200 (CEST)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id B38241D5D4\n for <dev@dpdk.org>; Sun, 27 Sep 2020 09:47:20 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Sep 2020 00:47:17 -0700", "from intel-npg-odc-srv03.cd.intel.com ([10.240.178.138])\n by orsmga002.jf.intel.com with ESMTP; 27 Sep 2020 00:47:15 -0700" ], "IronPort-SDR": [ "\n m/Nn3BhRB0nDQSXkXNmIbj1Z7FqWMVV8+VYoCGp7alx1EF41p7diTwPfffEXIdSTPQYH3rNWxz\n pdd4E28NYGAg==", "\n pksgT3cvF6Bt7D8aoDnOxGTCLu4ov1q6BGv/ylG039Mu/PYjblo6AvuLgo9wz3rRfO/vCkEqgr\n kjM4+H9hzeHw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9756\"; a=\"223438294\"", "E=Sophos;i=\"5.77,309,1596524400\"; d=\"scan'208\";a=\"223438294\"", "E=Sophos;i=\"5.77,309,1596524400\"; d=\"scan'208\";a=\"323939317\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Robin Zhang <robinx.zhang@intel.com>", "To": "dev@dpdk.org", "Cc": "beilei.xing@intel.com, jingjing.wu@intel.com, qiming.yang@intel.com,\n stevex.yang@intel.com, Robin Zhang <robinx.zhang@intel.com>", "Date": "Sun, 27 Sep 2020 07:26:19 +0000", "Message-Id": "<20200927072626.28374-2-robinx.zhang@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200927072626.28374-1-robinx.zhang@intel.com>", "References": "<20200927072626.28374-1-robinx.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH 1/8] net/iavf: use link status helper functions", "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 <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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Use new rte_eth_linkstatus_get/set helper functions to handle link\nstatus update.\n\nSigned-off-by: Robin Zhang <robinx.zhang@intel.com>\n---\n drivers/net/iavf/iavf_ethdev.c | 7 +------\n 1 file changed, 1 insertion(+), 6 deletions(-)", "diff": "diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c\nindex 440da7d76..95c71e16f 100644\n--- a/drivers/net/iavf/iavf_ethdev.c\n+++ b/drivers/net/iavf/iavf_ethdev.c\n@@ -665,12 +665,7 @@ iavf_dev_link_update(struct rte_eth_dev *dev,\n \tnew_link.link_autoneg = !(dev->data->dev_conf.link_speeds &\n \t\t\t\tETH_LINK_SPEED_FIXED);\n \n-\tif (rte_atomic64_cmpset((uint64_t *)&dev->data->dev_link,\n-\t\t\t\t*(uint64_t *)&dev->data->dev_link,\n-\t\t\t\t*(uint64_t *)&new_link) == 0)\n-\t\treturn -1;\n-\n-\treturn 0;\n+\treturn rte_eth_linkstatus_set(dev, &new_link);\n }\n \n static int\n", "prefixes": [ "1/8" ] }{ "id": 78904, "url": "