lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0d6c225e-358b-401e-a4aa-a1f7ea0f2652@lunn.ch>
Date: Wed, 18 Sep 2024 14:05:34 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Mohan.Prasad@...rochip.com
Cc: netdev@...r.kernel.org, davem@...emloft.net, kuba@...nel.org,
	edumazet@...gle.com, pabeni@...hat.com, shuah@...nel.org,
	linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org,
	horms@...nel.org, brett.creeley@....com, rosenp@...il.com,
	UNGLinuxDriver@...rochip.com, willemb@...gle.com
Subject: Re: [PATCH net-next v2 1/3] selftests: nic_basic_tests: Add selftest
 file for basic tests of NIC

> > Since you have batteries included python:
> > 
> > ethtool --json enp2s0
> > [sudo] password for andrew:
> > [ {
> >         "ifname": "enp2s0",
> >         "supported-ports": [ "TP","MII" ],
> >         "supported-link-modes": [
> > "10baseT/Half","10baseT/Full","100baseT/Half","100baseT/Full","1000baseT/
> > Full" ],
> >         "supported-pause-frame-use": "Symmetric Receive-only",
> >         "supports-auto-negotiation": true,
> >         "supported-fec-modes": [ ],
> >         "advertised-link-modes": [
> > "10baseT/Half","10baseT/Full","100baseT/Half","100baseT/Full","1000baseT/
> > Full" ],
> >         "advertised-pause-frame-use": "Symmetric Receive-only",
> >         "advertised-auto-negotiation": true,
> >         "advertised-fec-modes": [ ],
> >         "auto-negotiation": false,
> >         "master-slave-cfg": "preferred slave",
> >         "master-slave-status": "unknown",
> >         "port": "Twisted Pair",
> >         "phyad": 0,
> >         "transceiver": "external",
> >         "supports-wake-on": "pumbg",
> >         "wake-on": "d",
> >         "link-detected": false
> >     } ]
> > 
> > You can use a json library to do all the parsing for you.
> 
> I tried running the --json option with the ethtool ("ethtool --json enp9s0"), however I am not getting the above output.
> Instead it always throws "ethtool: bad command line argument(s)"
> I am figuring out what might be missing (or any suggestions would be helpful).

Are you using real ethtool, or busybox? What version of ethtool? I'm
using 6.10, but it looks like JSON support was added somewhere around
5.10.

	Andrew

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ