get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/139965/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 139965,
    "url": "http://patches.dpdk.org/api/patches/139965/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240507124305.2318-2-venkatkumar.ande@amd.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": "<20240507124305.2318-2-venkatkumar.ande@amd.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240507124305.2318-2-venkatkumar.ande@amd.com",
    "date": "2024-05-07T12:42:42",
    "name": "[v2,02/25] net/axgbe: reset link when the link never comes back",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ef9a1d845f93dca6e6545fa292aff38355c41aba",
    "submitter": {
        "id": 3256,
        "url": "http://patches.dpdk.org/api/people/3256/?format=api",
        "name": "Venkat Kumar Ande",
        "email": "venkatkumar.ande@amd.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240507124305.2318-2-venkatkumar.ande@amd.com/mbox/",
    "series": [
        {
            "id": 31890,
            "url": "http://patches.dpdk.org/api/series/31890/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31890",
            "date": "2024-05-07T12:42:41",
            "name": "[v2,01/25] net/axgbe: fix mdio access for non-zero ports and CL45 PHYs",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/31890/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/139965/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/139965/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 E65B843FC9;\n\tTue,  7 May 2024 14:43:46 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CC08043392;\n\tTue,  7 May 2024 14:43:46 +0200 (CEST)",
            "from NAM11-CO1-obe.outbound.protection.outlook.com\n (mail-co1nam11on2088.outbound.protection.outlook.com [40.107.220.88])\n by mails.dpdk.org (Postfix) with ESMTP id A80884338E;\n Tue,  7 May 2024 14:43:44 +0200 (CEST)",
            "from PH7P220CA0040.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:32b::24)\n by PH7PR12MB5783.namprd12.prod.outlook.com (2603:10b6:510:1d2::9)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Tue, 7 May\n 2024 12:43:42 +0000",
            "from SN1PEPF00036F43.namprd05.prod.outlook.com\n (2603:10b6:510:32b:cafe::7e) by PH7P220CA0040.outlook.office365.com\n (2603:10b6:510:32b::24) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42 via Frontend\n Transport; Tue, 7 May 2024 12:43:41 +0000",
            "from SATLEXMB04.amd.com (165.204.84.17) by\n SN1PEPF00036F43.mail.protection.outlook.com (10.167.248.27) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.20.7544.18 via Frontend Transport; Tue, 7 May 2024 12:43:41 +0000",
            "from cae-Lilac-RMB.amd.com (10.180.168.240) by SATLEXMB04.amd.com\n (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 7 May\n 2024 07:43:31 -0500"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=iVUKFrZu9pNW1AkXQAwkvAZieC7se+qfD9+tFg+JCq8Ph+aBQlGgvx6fHOdDMIeFEFwyLZ2EDxAIRek6zjoevqHTPqfa+ncu5myNIRmbSlDLA4Y7opZPq5tPHj/76U+VnfHtvaodadmMgqi3v/U//c0xa2d99Zri15fWu9hDVyWTwqe4ZUrxocWMPVMucxjiaNuZeXRqWzphmaFPAuw8cV5HFMS13+ds/ufCELuyf3SxOgCKO98ufgbGKvu7nl5W7b4yn5tkR4/TUPtYLOwLDLiZy4LyR+2sgHtWGl43GA6PB/tY7+rOxanKb7/ISb8QFSyBGyMZDjg8csR7JcO/ww==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=mai416eg24Sohql0vZV4j8PZvzCDit2VkFpMvEdjIsE=;\n b=hMHyAHXER/Ld1qdSqiM+V/qsUPISUXSMpnQLBhnYl6B1hhg8EMpoFQlY8o+3zwQPF1YFG/FldpXH1l16W2gEjNeUbUlD3s/o5gN9sozIcXy0AyTm0mBmd29v1BQfGkP13z7jWEM0K0R8tV36gaOxbvMRcmwd3ogVGEZTvCkG+Cgkpa979zr9npU5ZXUfKzWoStHJxXj1r6bzjGSgI6Tth1VYnJ7i3qlxX/FhlaKSXihinxiD+a5g7tDffyEOchJhifK9kIySD5mlgA9zZipfQrHsTZvH0k4IEjFFvDvJzkWvEk8dSWIAAuTKfLNaW6x57We1G8kc/CWmwnZbGRlFeA==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass\n (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com;\n dkim=none (message not signed); arc=none (0)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=mai416eg24Sohql0vZV4j8PZvzCDit2VkFpMvEdjIsE=;\n b=My9JURk3Fz6KbLexyEhOx8QLW6sXZy2mvU+FoXCf2ZZHEzEyDP92RsD7K9juaXs5qF/+Ke7DpW82KUQgrdT4kK4izhz5tu2l2qrMwW1801raySTUVxxhGQQOJzLCaUJbY2dom0sx6SiOW/02Xo1NwNFMWvQBa40h5+cYjK2DLbg=",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 165.204.84.17)\n smtp.mailfrom=amd.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=amd.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of amd.com designates\n 165.204.84.17 as permitted sender) receiver=protection.outlook.com;\n client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C",
        "From": "Venkat Kumar Ande <venkatkumar.ande@amd.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<Selwin.Sebastian@amd.com>, Venkat Kumar Ande <venkatkumar.ande@amd.com>,\n <stable@dpdk.org>",
        "Subject": "[PATCH v2 02/25] net/axgbe: reset link when the link never comes back",
        "Date": "Tue, 7 May 2024 18:12:42 +0530",
        "Message-ID": "<20240507124305.2318-2-venkatkumar.ande@amd.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20240507124305.2318-1-venkatkumar.ande@amd.com>",
        "References": "<20240412125013.10498-1-VenkatKumar.Ande@amd.com>\n <20240507124305.2318-1-venkatkumar.ande@amd.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.180.168.240]",
        "X-ClientProxiedBy": "SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com\n (10.181.40.145)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "SN1PEPF00036F43:EE_|PH7PR12MB5783:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "946f1cf0-c2f8-4046-e5ea-08dc6e935374",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230031|36860700004|82310400017|1800799015|376005;",
        "X-Microsoft-Antispam-Message-Info": "\n +0p2OqyY2Jp1CX20F2N6ixl/2Y8tva22XNpE9nmTtR6h+H6wotWO4ZKuQJ4RkVOSdYulNa2knXrXqdYTrCP6vESFJtgEQVBty7Da794KsJTb/BEWrDHmRKJvHXpeOrJXkq6zzZq06XqgcybjsOpMFt7bQ/LcNemPY3b5WdFrP1gTUy39aSDAIBJ+JLTf6irFBD9rqFx8RVl7Xa/K641m3svy9dCVI5RGSnN6GMcd3hu75FkRZ1ByvajDBWuMGehUb3p7pKvBw3/C5+682IFm+N/TK2ww30OMd+oIU/qnEXyEb+VQhgDVrC7+CNtLx8q23d+3JYXR43aoeHIoLsYrh7UiQ0+9req6OdtxL9hiaXpuVMVXs/qhTWb2gBNXsnyG4D1/XFZoDikVxV+hsyaPTIL6kmYabhpdA2Hz9wSGswffPtUikd0n39JStSVJ/k3pTp9MmPkFdWbf4b5pQccaYXSaDe2vAOhBXcV/uxhM+pCSt9eR8++/uy4m9BZmEWKagnioDg6Tgk5vkPEXftGs0wVFSxn3pQFarfDYAAjwDeFLmVr1Fg1ZoMxYgXatQX0/BiF7ZG4t0YocVCf3GgITQVDmzonGGOm+OimE/MhyktubiWQkG8Jb3+vO89TfxTUFN+Woo7/+AhsKc2WY/DNxRkHoB9wfzo+FcJQCbHr4HN0Ef7swvv0vO1g6CBOFA0jvP1yw9vwqIAGIxTZ9SefW9NXRDB5pDG163DXKOcC4GMVsHHNNuCJFAvnvVcuCbdrCqHod9a2ML1JObut4r8JF1L4UZ7rQTyFveiKKltqEpUF/c9RokQpsZcwPapDE8GrRoTXJum42vn3Q9Bh4SpfGCRiW6xKNhLVsWtor0zEVxdL0Z5rT3HbPjYNVEf3ocf4J3Jx09BgsaJ//itUg9er/29kAO3ym33xxEV34fLbSpQAQt7ZZE1kM1/Eyl/EEUFOAq5Z5PWR8MeuYgRRuoi9UmfL45X9GtC6aISj7CuGo6pi0VgLuozb5U/LNfG31Db2iH2PQBTIp54B7ePhk6IiAj+ltb8KcIg9OEypEWHRvzFwLbnWtdxaimZE1tNIJ7q/LgYuoRFLLJ05tfKTnmESRz3IMd0C4rUEcWNROGDMjTOCWphjyKUH+IMsRNFWn0A/8h36ny2NoOuidpYs56HDAUGHuxc4nYQ5JIEwPVgv5jv6DKh+CEZV+1xumbaJWDdWHVt3bMCunvo6atWa87boFL9QoScFQSCMWxn0MeQLh2GSc7c0TQDYJH/pDxHNcV5grd57+903eWc/SOBa6BIh3j8sQD0OpUpKaIkJkgnFMaRtPWWwyFhN9Gco4IMUv+PgBSiEG4XVKDnnmcSSk/AEWgOpZ1LC0332rGndTHO769e1zEPMJxAdBOAbiWyt5Vz0W",
        "X-Forefront-Antispam-Report": "CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230031)(36860700004)(82310400017)(1800799015)(376005); DIR:OUT;\n SFP:1101;",
        "X-OriginatorOrg": "amd.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "07 May 2024 12:43:41.8560 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 946f1cf0-c2f8-4046-e5ea-08dc6e935374",
        "X-MS-Exchange-CrossTenant-Id": "3dd8961f-e488-4e60-8e11-a82d994e183d",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17];\n Helo=[SATLEXMB04.amd.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n SN1PEPF00036F43.namprd05.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "PH7PR12MB5783",
        "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": "Normally, auto negotiation and reconnect should be automatically done by\nthe hardware. But there seems to be an issue where auto negotiation has\nto be restarted manually. This happens because of link training and so\neven though still connected to the partner the link never \"comes back\".\nThis needs an auto-negotiation restart.\n\nWithout the fix the user will not see the link up status\n\nFixes: a5c7273771e8 (\"net/axgbe: add phy programming APIs\")\nCc: stable@dpdk.org\n\nSigned-off-by: Venkat Kumar Ande <venkatkumar.ande@amd.com>\n---\n drivers/net/axgbe/axgbe_mdio.c     | 2 +-\n drivers/net/axgbe/axgbe_phy_impl.c | 7 +++++++\n 2 files changed, 8 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/axgbe/axgbe_mdio.c b/drivers/net/axgbe/axgbe_mdio.c\nindex 913ceada0d..b03bc471cb 100644\n--- a/drivers/net/axgbe/axgbe_mdio.c\n+++ b/drivers/net/axgbe/axgbe_mdio.c\n@@ -1051,7 +1051,7 @@ static void axgbe_phy_status(struct axgbe_port *pdata)\n \t\t\t\t\t\t\t     &an_restart);\n \tif (an_restart) {\n \t\taxgbe_phy_config_aneg(pdata);\n-\t\treturn;\n+\t\tgoto adjust_link;\n \t}\n \n \tif (pdata->phy.link) {\ndiff --git a/drivers/net/axgbe/axgbe_phy_impl.c b/drivers/net/axgbe/axgbe_phy_impl.c\nindex 44ff28517c..54fe9faae0 100644\n--- a/drivers/net/axgbe/axgbe_phy_impl.c\n+++ b/drivers/net/axgbe/axgbe_phy_impl.c\n@@ -1697,6 +1697,13 @@ static int axgbe_phy_link_status(struct axgbe_port *pdata, int *an_restart)\n \tif (reg & MDIO_STAT1_LSTATUS)\n \t\treturn 1;\n \n+\tif (pdata->phy.autoneg == AUTONEG_ENABLE &&\n+\t\t\tphy_data->port_mode == AXGBE_PORT_MODE_BACKPLANE) {\n+\t\tif (rte_bit_relaxed_get32(AXGBE_LINK_INIT, &pdata->dev_state)) {\n+\t\t\t*an_restart = 1;\n+\t\t}\n+\t}\n+\n \t/* No link, attempt a receiver reset cycle */\n \tif (phy_data->rrc_count++) {\n \t\tphy_data->rrc_count = 0;\n",
    "prefixes": [
        "v2",
        "02/25"
    ]
}