[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1584458082-29207-4-git-send-email-vasundhara-v.volam@broadcom.com>
Date: Tue, 17 Mar 2020 20:44:40 +0530
From: Vasundhara Volam <vasundhara-v.volam@...adcom.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org,
Vasundhara Volam <vasundhara-v.volam@...adcom.com>,
Jiri Pirko <jiri@...lanox.com>,
Michael Chan <michael.chan@...adcom.com>
Subject: [PATCH net-next 03/11] devlink: add macro for "hw.addr"
Add definition and documentation for the new generic info "hw.addr".
"hw.addr" displays the hardware address of the interface.
Cc: Jiri Pirko <jiri@...lanox.com>
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@...adcom.com>
Signed-off-by: Michael Chan <michael.chan@...adcom.com>
---
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 0765a48..25658f2 100644
--- a/Documentation/networking/devlink/devlink-info.rst
+++ b/Documentation/networking/devlink/devlink-info.rst
@@ -65,6 +65,11 @@ drv.spec
Firmware interface specification version of the software interfaces between
driver and firmware. This tag displays spec version implemented by driver.
+hw.addr
+-------
+
+Hardware address of the interface.
+
fw
--
diff --git a/include/net/devlink.h b/include/net/devlink.h
index 9c4d889..e130d24 100644
--- a/include/net/devlink.h
+++ b/include/net/devlink.h
@@ -479,6 +479,9 @@ enum devlink_param_generic_id {
/* FW interface specification version implemented by driver */
#define DEVLINK_INFO_VERSION_GENERIC_DRV_SPEC "drv.spec"
+/* Hardware address */
+#define DEVLINK_INFO_VERSION_GENERIC_HW_ADDR "hw.addr"
+
/* Overall FW version */
#define DEVLINK_INFO_VERSION_GENERIC_FW "fw"
/* Control processor FW version */
--
1.8.3.1
Powered by blists - more mailing lists