On 05/01/2017 01:31, Yang, Qiming wrote:
[..]
+       if (strcmp(drvinfo->driver, "net_ixgbe") == 0)

Do you need this check. I think it is not good idea to add this kind
of checks into ethtool app. Why not just print "%d.%d.%d %#X, major,
minor, patch, etrack" for all cases ?
> Qiming: because I want to keep the format same with kernel version ethtool.

My feeling is that if we're going to have driver-specific output, then the task of constructing the string should be pushed down into the PMDs. It would also solve the headache of trying to standardise, as Thomas has mentioned..

..Remy

Reply via email to