Thread (20 messages) flat view 20 messages, 4 authors, 2017-01-20

Re: [PATCH v7 11/13] net: ethernet: aquantia: Ethtool support

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2017-01-19 22:34:51

On 01/19/2017 01:33 PM, Alexander Loktionov wrote:
From: David VomLehn <redacted>

Add the driver interfaces required for support by the ethtool utility.

Signed-off-by: Alexander Loktionov <redacted>
Signed-off-by: Dmitrii Tarakanov <redacted>
Signed-off-by: Pavel Belous <redacted>
Signed-off-by: Dmitry Bezrukov <redacted>
Signed-off-by: David M. VomLehn <redacted>
---
+	strlcat(drvinfo->driver, AQ_CFG_DRV_NAME, sizeof(drvinfo->driver));
+	strlcat(drvinfo->version, AQ_CFG_DRV_VERSION, sizeof(drvinfo->version));
+
+	snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
+		 "%u.%u.%u", firmware_version >> 24,
+		 (firmware_version >> 16) & 0xFFU, firmware_version & 0xFFFFU);
+
+	drvinfo->n_stats = ARRAY_SIZE(aq_ethtool_stat_names) -
+		(AQ_CFG_VECS_MAX - cfg->vecs) * aq_ethtool_stat_queue_lines;
+	drvinfo->testinfo_len = 0;
+	drvinfo->regdump_len = regs_count;
+	drvinfo->eedump_len = 0;
Can you also report the bus type here via drvinfo->bus_info?
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help