From patchwork Thu Mar 26 06:27:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasundhara Volam X-Patchwork-Id: 221827 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69BBCC43331 for ; Thu, 26 Mar 2020 06:30:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4054320772 for ; Thu, 26 Mar 2020 06:30:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="DlU/27zD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726336AbgCZGaC (ORCPT ); Thu, 26 Mar 2020 02:30:02 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:41821 "EHLO mail-wr1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725819AbgCZGaC (ORCPT ); Thu, 26 Mar 2020 02:30:02 -0400 Received: by mail-wr1-f45.google.com with SMTP id h9so6300958wrc.8 for ; Wed, 25 Mar 2020 23:30:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2huTS4rG7uMC3KslIS2zhFGoF0McQRbFsPLFtRCMtLw=; b=DlU/27zD+fTU0gEZqIIw7h5I8TuqGn+JfBIIvSYwhvWAT+ZRL9lRFVNj8p45CWhbwD JYrIaHi4t823ZNv7/3m7WbA73cm/FNeulfc0pJ9yK2K09hA4nVXFg8CfAMFCIo8MAnEA w5VZ50sBLaGR8DFmmaEWrJxG4MLiUr8AcCKZE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2huTS4rG7uMC3KslIS2zhFGoF0McQRbFsPLFtRCMtLw=; b=cGn5FoBgENw9+OUINZStTJIR1P8FoiXjU5bdrk7ipjjf2lwWfYuSNV3kLFkpFXVzfb KULCxAMEQMJw4p2kEz8BP8vC6rPM3byG7EWGTkFNYxEbwQZu2iPfjdM5OrFBOEMPkFJ/ DLWIwgURGbqCUID+t5fwptOnvAF+Nr1jEkGvOihpkaUIprq4Ztkkl+7vKKtQWDnyTgES nNpNMvne/NxbuCFyXY5va4cvtq1Z2fZABR16EdLToNgj5n8AyemdKcMGoqEAd/J/VpWz IkKaCUUDJ8APdk0gVeTJ4yWn5j6EzC+BFhG/Dqnk/uzzS4yvhxIzIjKdYze4wlf0fQHw hZdw== X-Gm-Message-State: ANhLgQ2rc17A8LBRLzzsfFWxjGYRaDp2j2PqoOtMfF2HEZvWPdt/pPhW Dm/9Y8PmAFnbOhtsbd9gG5P/7A== X-Google-Smtp-Source: ADFU+vsIYqLyH5nLJADRBtxkP+YNUSinTyo6bPI01iSD1w0KLqTtC7U5ZVuisU5tPa0K+fS5hAG7JQ== X-Received: by 2002:a5d:460e:: with SMTP id t14mr4703879wrq.421.1585204200338; Wed, 25 Mar 2020 23:30:00 -0700 (PDT) Received: from lxpurley1.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id y200sm2106768wmc.20.2020.03.25.23.29.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Mar 2020 23:29:59 -0700 (PDT) From: Vasundhara Volam To: davem@davemloft.net Cc: netdev@vger.kernel.org, Vasundhara Volam , Jiri Pirko , Michael Chan Subject: [PATCH v2 net-next 3/7] devlink: Add macro for "hw.addr" to info_get cb. Date: Thu, 26 Mar 2020 11:57:00 +0530 Message-Id: <1585204021-10317-4-git-send-email-vasundhara-v.volam@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1585204021-10317-1-git-send-email-vasundhara-v.volam@broadcom.com> References: <1585204021-10317-1-git-send-email-vasundhara-v.volam@broadcom.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add definition and documentation for the new generic info "hw.addr". "hw.addr" displays the hardware address of the interface. Cc: Jiri Pirko Signed-off-by: Vasundhara Volam Signed-off-by: Michael Chan --- Documentation/networking/devlink/devlink-info.rst | 5 +++++ include/net/devlink.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/Documentation/networking/devlink/devlink-info.rst b/Documentation/networking/devlink/devlink-info.rst index 650e2c0e3..56d13c5 100644 --- a/Documentation/networking/devlink/devlink-info.rst +++ b/Documentation/networking/devlink/devlink-info.rst @@ -144,6 +144,11 @@ board.manufacture An identifier of the company or the facility which produced the part. +hw.addr +------- + +Hardware address of the interface. + fw -- diff --git a/include/net/devlink.h b/include/net/devlink.h index d51482f..c9383f4 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -476,6 +476,9 @@ enum devlink_param_generic_id { /* Revision of asic design */ #define DEVLINK_INFO_VERSION_GENERIC_ASIC_REV "asic.rev" +/* Hardware address */ +#define DEVLINK_INFO_VERSION_GENERIC_HW_ADDR "hw.addr" + /* Overall FW version */ #define DEVLINK_INFO_VERSION_GENERIC_FW "fw" /* Overall FW interface specification version */