Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/132761/?format=api
https://patches.dpdk.org/api/patches/132761/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20231017154532.152741-1-bruce.richardson@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": "<20231017154532.152741-1-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231017154532.152741-1-bruce.richardson@intel.com", "date": "2023-10-17T15:45:32", "name": "event/dsw: fix missing device pointer", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f457d169343c75f1790cdc6aa4d5f6f7a73cb5e6", "submitter": { "id": 20, "url": "https://patches.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.com" }, "delegate": { "id": 310, "url": "https://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20231017154532.152741-1-bruce.richardson@intel.com/mbox/", "series": [ { "id": 29886, "url": "https://patches.dpdk.org/api/series/29886/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29886", "date": "2023-10-17T15:45:32", "name": "event/dsw: fix missing device pointer", "version": 1, "mbox": "https://patches.dpdk.org/series/29886/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/132761/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/132761/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 851054318D;\n\tTue, 17 Oct 2023 17:45:46 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0AFC440273;\n\tTue, 17 Oct 2023 17:45:46 +0200 (CEST)", "from mgamail.intel.com (mgamail.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id CB9B440270\n for <dev@dpdk.org>; Tue, 17 Oct 2023 17:45:44 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Oct 2023 08:45:42 -0700", "from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.41])\n by fmsmga001.fm.intel.com with ESMTP; 17 Oct 2023 08:43:38 -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=1697557545; x=1729093545;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=7PQupnugzE3A5x+htO6mWWiKZS6g8B0kYIANnihTNI8=;\n b=D2cEmfx7oPsc1tTMpOPNvSk+5HGzbnATFd81x5Y7MCqGxOy+rEeX6lw/\n i7NsIYcDXbsam1OpklEBEQLnXqEfSQr1pgyZzsdTjUVGhYv3SWf8paqJ/\n RRam5Av4zEZn0Tzoe1+qiwdtLkP63Adm6t7drauFmYmfwc5t5mY+yywFN\n CAEMWtOHbK44lJVvQjzgR/56GwwsqqRLteCcC++q0KJt//FPBS2/vAYz8\n PMc60cQ+RtjbY6J5cZ1G8VOdKrLd3Ll0AynDGEr2T2In03dljm4wU0AGV\n 9ZCiIOaHxhiwpdOxxobtF45QTitkJ4wNfatcLn8BGu76jUBOqf0ROHfCX A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10866\"; a=\"365161532\"", "E=Sophos;i=\"6.03,232,1694761200\"; d=\"scan'208\";a=\"365161532\"", "E=McAfee;i=\"6600,9927,10866\"; a=\"899953823\"", "E=Sophos;i=\"6.03,232,1694761200\"; d=\"scan'208\";a=\"899953823\"" ], "X-ExtLoop1": "1", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n mattias.ronnblom@ericsson.com", "Subject": "[PATCH] event/dsw: fix missing device pointer", "Date": "Tue, 17 Oct 2023 16:45:32 +0100", "Message-Id": "<20231017154532.152741-1-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.39.2", "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": "After calling rte_event_dev_info_get() the \".dev\" field of the info\nstructure should have a pointer to the underlying device, allowing the\nuser to e.g. get the device name using using rte_dev_name(info.dev).\n\nThe distributed software eventdev info structure did not return a\ncorrect device pointer, though, instead returning NULL, which caused\ncrashes getting \"rte_dev_name\". Initializing the dev pointer inside the\n\"eventdev\" struct in the device probe function fixes this by ensuring we\nhave a valid pointer to return in info_get calls.\n\nFixes: 46a186b1f0c5 (\"event/dsw: add device registration and build system\")\nCc: mattias.ronnblom@ericsson.com\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/event/dsw/dsw_evdev.c | 1 +\n 1 file changed, 1 insertion(+)", "diff": "diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c\nindex 785c12f61f..44da3c60d1 100644\n--- a/drivers/event/dsw/dsw_evdev.c\n+++ b/drivers/event/dsw/dsw_evdev.c\n@@ -440,6 +440,7 @@ dsw_probe(struct rte_vdev_device *vdev)\n \t\treturn -EFAULT;\n \n \tdev->dev_ops = &dsw_evdev_ops;\n+\tdev->dev = &vdev->device;\n \tdev->enqueue = dsw_event_enqueue;\n \tdev->enqueue_burst = dsw_event_enqueue_burst;\n \tdev->enqueue_new_burst = dsw_event_enqueue_new_burst;\n", "prefixes": [] }{ "id": 132761, "url": "