Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2226533/?format=api
{ "id": 2226533, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2226533/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/20260422145231.1537664-2-david.marchand@redhat.com/", "project": { "id": 47, "url": "http://patchwork.ozlabs.org/api/1.1/projects/47/?format=api", "name": "Open vSwitch", "link_name": "openvswitch", "list_id": "ovs-dev.openvswitch.org", "list_email": "ovs-dev@openvswitch.org", "web_url": "http://openvswitch.org/", "scm_url": "git@github.com:openvswitch/ovs.git", "webscm_url": "https://github.com/openvswitch/ovs" }, "msgid": "<20260422145231.1537664-2-david.marchand@redhat.com>", "date": "2026-04-22T14:52:30", "name": "[ovs-dev,v2,1/2] netdev-dpdk: Enhance logging for port hotplug.", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "375e26e050714858adf989370c4e37bb87ac9596", "submitter": { "id": 75396, "url": "http://patchwork.ozlabs.org/api/1.1/people/75396/?format=api", "name": "David Marchand", "email": "david.marchand@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/20260422145231.1537664-2-david.marchand@redhat.com/mbox/", "series": [ { "id": 501027, "url": "http://patchwork.ozlabs.org/api/1.1/series/501027/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=501027", "date": "2026-04-22T14:52:29", "name": "Disable initial device probe in DPDK.", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/501027/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2226533/comments/", "check": "warning", "checks": "http://patchwork.ozlabs.org/api/patches/2226533/checks/", "tags": {}, "headers": { "Return-Path": "<ovs-dev-bounces@openvswitch.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "dev@openvswitch.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "ovs-dev@lists.linuxfoundation.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=K5LDgrxB;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=140.211.166.137; helo=smtp4.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org)", "smtp4.osuosl.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=K5LDgrxB", "smtp1.osuosl.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com", "smtp1.osuosl.org;\n dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com\n header.a=rsa-sha256 header.s=mimecast20190719 header.b=K5LDgrxB" ], "Received": [ "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g12Jl4d9rz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 00:52:55 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 7DE66427CC;\n\tWed, 22 Apr 2026 14:52:53 +0000 (UTC)", "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id B6MAzvks2EcG; Wed, 22 Apr 2026 14:52:52 +0000 (UTC)", "from lists.linuxfoundation.org (lf-lists.osuosl.org\n [IPv6:2605:bc80:3010:104::8cd3:938])\n\tby smtp4.osuosl.org (Postfix) with ESMTPS id 6689B427C0;\n\tWed, 22 Apr 2026 14:52:52 +0000 (UTC)", "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 451AAC058E;\n\tWed, 22 Apr 2026 14:52:52 +0000 (UTC)", "from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n by lists.linuxfoundation.org (Postfix) with ESMTP id BBECCC058D\n for <dev@openvswitch.org>; Wed, 22 Apr 2026 14:52:51 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id AE87F849C0\n for <dev@openvswitch.org>; Wed, 22 Apr 2026 14:52:51 +0000 (UTC)", "from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id OhIPg3DWE0d6 for <dev@openvswitch.org>;\n Wed, 22 Apr 2026 14:52:50 +0000 (UTC)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by smtp1.osuosl.org (Postfix) with ESMTPS id 9DA5C849BA\n for <dev@openvswitch.org>; Wed, 22 Apr 2026 14:52:50 +0000 (UTC)", "from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-115-sYOE1tGJMgGHd7vVSL06vg-1; Wed,\n 22 Apr 2026 10:52:45 -0400", "from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id B6CBC18005A9; Wed, 22 Apr 2026 14:52:44 +0000 (UTC)", "from dmarchan.lan (unknown [10.44.49.81])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 00513180058B; Wed, 22 Apr 2026 14:52:42 +0000 (UTC)" ], "X-Virus-Scanned": [ "amavis at osuosl.org", "amavis at osuosl.org" ], "X-Comment": "SPF check N/A for local connections -\n client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN> ", "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 smtp4.osuosl.org 6689B427C0", "OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9DA5C849BA" ], "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=170.10.129.124;\n helo=us-smtp-delivery-124.mimecast.com;\n envelope-from=david.marchand@redhat.com; receiver=<UNKNOWN>", "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp1.osuosl.org 9DA5C849BA", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1776869569;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=a17Kf/4/fmmfoz9f1dMKsX5Ca80VjFjx4GQlv5LVLU0=;\n b=K5LDgrxB+HAo3GRgc5HH182VadAJitEX4Dg9mAgwUet4ZVKlN7NAx9T+f0/1kVgZL9bedR\n 3u6RQyC2qMKNTIlL48Sk39YN6x4bhW7M6lAhsfgrn1nsXWLgJqdqiWcrscUYw8x9VBZEEo\n Gbi8JztEVkuoa/PbVZbAb88KqWGyQbA=", "X-MC-Unique": "sYOE1tGJMgGHd7vVSL06vg-1", "X-Mimecast-MFC-AGG-ID": "sYOE1tGJMgGHd7vVSL06vg_1776869565", "To": "dev@openvswitch.org", "Date": "Wed, 22 Apr 2026 16:52:30 +0200", "Message-ID": "<20260422145231.1537664-2-david.marchand@redhat.com>", "In-Reply-To": "<20260422145231.1537664-1-david.marchand@redhat.com>", "References": "<20260422145231.1537664-1-david.marchand@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.111", "X-Mimecast-Spam-Score": "0", "X-Mimecast-MFC-PROC-ID": "BggzZLKc1V_POOZQ11ZwwBDGu4gzACWTr46jx7mqERk_1776869565", "X-Mimecast-Originator": "redhat.com", "Subject": "[ovs-dev] [PATCH v2 1/2] netdev-dpdk: Enhance logging for port\n hotplug.", "X-BeenThere": "ovs-dev@openvswitch.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "<ovs-dev.openvswitch.org>", "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>", "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>", "List-Post": "<mailto:ovs-dev@openvswitch.org>", "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>", "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>", "From": "David Marchand via dev <ovs-dev@openvswitch.org>", "Reply-To": "David Marchand <david.marchand@redhat.com>", "Cc": "elibr@nvidia.com", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "ovs-dev-bounces@openvswitch.org", "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>" }, "content": "Currently, if one incorrect mac is set, a first log with little context\nis displayed, followed by a more complete one.\n\nBesides, if no port can be identified with the passed mac, then no\nexplanation is displayed.\n\nReport some details in a single log.\n\nBefore:\nnetdev_dpdk|ERR|invalid mac: 00:00:00:00:00:\nnetdev_dpdk|WARN|Error attaching device 'class=eth,mac=00:00:00:00:00:'\n\tto DPDK\n...\nnetdev_dpdk|WARN|Error attaching device 'class=eth,mac=00:00:00:00:00:00'\n\tto DPDK\n\nAfter:\nnetdev_dpdk|WARN|Error attaching device 'class=eth,mac=00:00:00:00:00:':\n\tinvalid mac\n...\nnetdev_dpdk|WARN|Error attaching device 'class=eth,mac=00:00:00:00:00:00':\n\tunknown mac\n\nAcked-by: Eli Britstein <elibr@nvidia.com>\nAcked-by: Eelco Chaudron <echaudro@redhat.com>\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\nChanges since v1:\n- avoided allocating memory for error strings,\n\nChanges since RFC v1:\n- removed redundant \"to DPDK\" in netdev-dpdk log messages,\n\n---\n lib/netdev-dpdk.c | 22 ++++++++++++++++------\n 1 file changed, 16 insertions(+), 6 deletions(-)", "diff": "diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c\nindex 90d4c2c71e..7629d0f974 100644\n--- a/lib/netdev-dpdk.c\n+++ b/lib/netdev-dpdk.c\n@@ -2030,13 +2030,15 @@ netdev_dpdk_lookup_by_port_id(dpdk_port_t port_id)\n }\n \n static dpdk_port_t\n-netdev_dpdk_get_port_by_mac(const char *mac_str)\n+netdev_dpdk_get_port_by_mac(const char *mac_str, char const **extra_err)\n {\n dpdk_port_t port_id;\n struct eth_addr mac, port_mac;\n \n+ *extra_err = NULL;\n+\n if (!eth_addr_from_string(mac_str, &mac)) {\n- VLOG_ERR(\"invalid mac: %s\", mac_str);\n+ *extra_err = \"invalid mac\";\n return DPDK_ETH_PORT_ID_INVALID;\n }\n \n@@ -2050,6 +2052,7 @@ netdev_dpdk_get_port_by_mac(const char *mac_str)\n }\n }\n \n+ *extra_err = \"unknown mac\";\n return DPDK_ETH_PORT_ID_INVALID;\n }\n \n@@ -2086,31 +2089,38 @@ netdev_dpdk_process_devargs(struct netdev_dpdk *dev,\n OVS_REQUIRES(dpdk_mutex)\n {\n dpdk_port_t new_port_id;\n+ char const *extra_err = NULL;\n \n if (strncmp(devargs, \"class=eth,mac=\", 14) == 0) {\n- new_port_id = netdev_dpdk_get_port_by_mac(&devargs[14]);\n+ new_port_id = netdev_dpdk_get_port_by_mac(&devargs[14], &extra_err);\n } else {\n new_port_id = netdev_dpdk_get_port_by_devargs(devargs);\n if (!rte_eth_dev_is_valid_port(new_port_id)) {\n+ int ret;\n+\n /* Device not found in DPDK, attempt to attach it */\n- if (rte_dev_probe(devargs)) {\n+ ret = rte_dev_probe(devargs);\n+ if (ret < 0) {\n new_port_id = DPDK_ETH_PORT_ID_INVALID;\n+ extra_err = ovs_strerror(-ret);\n } else {\n new_port_id = netdev_dpdk_get_port_by_devargs(devargs);\n if (rte_eth_dev_is_valid_port(new_port_id)) {\n /* Attach successful */\n dev->attached = true;\n- VLOG_INFO(\"Device '%s' attached to DPDK\", devargs);\n+ VLOG_INFO(\"Device '%s' attached\", devargs);\n } else {\n /* Attach unsuccessful */\n new_port_id = DPDK_ETH_PORT_ID_INVALID;\n+ extra_err = \"port unknown\";\n }\n }\n }\n }\n \n if (new_port_id == DPDK_ETH_PORT_ID_INVALID) {\n- VLOG_WARN_BUF(errp, \"Error attaching device '%s' to DPDK\", devargs);\n+ VLOG_WARN_BUF(errp, \"Error attaching device '%s': %s\", devargs,\n+ extra_err ? extra_err : \"unknown error\");\n }\n \n return new_port_id;\n", "prefixes": [ "ovs-dev", "v2", "1/2" ] }