On 01/19/2017 01:33 PM, Alexander Loktionov wrote: > From: David VomLehn <[email protected]> > > Add the driver interfaces required for support by the ethtool utility. > > Signed-off-by: Alexander Loktionov <[email protected]> > Signed-off-by: Dmitrii Tarakanov <[email protected]> > Signed-off-by: Pavel Belous <[email protected]> > Signed-off-by: Dmitry Bezrukov <[email protected]> > Signed-off-by: David M. VomLehn <[email protected]> > ---
> + 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
