From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E1072F363F for ; Mon, 13 Jul 2026 09:21:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783934490; cv=none; b=MbxNbNfmP9iLklEhMSJ+s4E6JFYyHGF/g40DZ5RRVvvHIl6om+LHjYra306lQvja7iBvEIOwdJP59xlh2gzeiEdsWs0vnqqpuqGwfDKSo3O6MmZtutTa5hjvXsXIA1tEIsasA4PP3fqF/XTQtaGXeEEGpVYyxEnYGz8s+Zz2kOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783934490; c=relaxed/simple; bh=FDdkI+0TwLs1WDyCmmW1+RSfKece1PCSOkFIXdgyJqw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Lzz8t8LvsvIpCcwTLJA86ltT6U/Sh1RaBKDct+dDJWS4uWVSoiX9UeK9anyX+DThPVXBBMBlIZLNJko8+WOBKJyazLRlS3Ix4+Cbq4KpTiw9MP1DfxifR1dVL3dhqEKdS7lUiNQuIaOz05DkUQTYbY+qfMdaEHKof1njtZ0A3YE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=FapGF/n7; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FapGF/n7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783934487; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RfMiJG4sSQI5dapo/fTxHG11a+NsK6QryBoFpds8mH4=; b=FapGF/n7jWlhE/ayhXdVz6JaIZysb9r6JbbinQ2hvuYc/jZa+oZ3Yf9ZWHkl5hMuHPawo7 6rbH7/rHCt4U/HtR5rF18WJEQkwqiiZSgXWbaMEIbbWLaQaWWiiJmHqTYveE9eMLG7oJs/ Nz8WuGWwpvSXSESyNFPK3E/PO0c2q8c= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-145-LLQjRM_ZOOmFY3Q9VjPnQQ-1; Mon, 13 Jul 2026 05:21:24 -0400 X-MC-Unique: LLQjRM_ZOOmFY3Q9VjPnQQ-1 X-Mimecast-MFC-AGG-ID: LLQjRM_ZOOmFY3Q9VjPnQQ_1783934483 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C48E71955DB8; Mon, 13 Jul 2026 09:21:22 +0000 (UTC) Received: from p16v.redhat.com (unknown [10.44.34.53]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 77CA13000B50; Mon, 13 Jul 2026 09:21:20 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Jiri Pirko , Petr Oros , David Ahern , Stephen Hemminger Subject: [PATCH iproute2-next] ip: display DPLL pin information in link details Date: Mon, 13 Jul 2026 11:21:19 +0200 Message-ID: <20260713092119.1536385-1-ivecera@redhat.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Parse the IFLA_DPLL_PIN nested attribute and display the associated DPLL pin ID in 'ip link show' detail output. This allows users to see which DPLL recovered clock pin is associated with a network interface without having to cross-reference with 'dpll pin show'. Example output: $ ip -d link show eth0 ... parentbus pci parentdev 0000:51:00.0 dpll-pin 4 Signed-off-by: Ivan Vecera --- ip/ipaddress.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 6017bc8370cb..bf470961182e 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "rt_names.h" #include "utils.h" @@ -1294,6 +1295,18 @@ int print_linkinfo(struct nlmsghdr *n, void *arg) "parentdev %s ", rta_getattr_str(tb[IFLA_PARENT_DEV_NAME])); } + + if (tb[IFLA_DPLL_PIN]) { + struct rtattr *dp[DPLL_A_PIN_MAX + 1]; + + parse_rtattr_nested(dp, DPLL_A_PIN_MAX, + tb[IFLA_DPLL_PIN]); + if (dp[DPLL_A_PIN_ID]) + print_uint(PRINT_ANY, + "dpll_pin", + "dpll-pin %u ", + rta_getattr_u32(dp[DPLL_A_PIN_ID])); + } } if ((do_link || show_details) && tb[IFLA_IFALIAS]) { -- 2.53.0