On 9/24/2020 8:36 AM, Jakub Kicinski wrote:
> On Wed, 23 Sep 2020 17:10:30 -0700 Jacob Keller wrote:
>>> - printf("RX negotiated: %s\nTX negotiated: %s\n",
>>> - rx_status ? "on" : "off", tx_status ? "on" : "off");
>>> +
>>> + if (is_json_context()) {
>>> + open_json_objec
On Wed, 23 Sep 2020 17:10:30 -0700 Jacob Keller wrote:
> > - printf("RX negotiated: %s\nTX negotiated: %s\n",
> > - rx_status ? "on" : "off", tx_status ? "on" : "off");
> > +
> > + if (is_json_context()) {
> > + open_json_object("negotiated");
> > + print_bool(PRINT
On 9/15/2020 4:52 PM, Jakub Kicinski wrote:
> No change in normal text output:
>
> # ./ethtool -a eth0
> Pause parameters for eth0:
> Autonegotiate:on
> RX: on
> TX: on
> RX negotiated: on
> TX negotiated: on
>
> JSON:
>
> # ./ethtool --json -a eth0
> [ {
>
No change in normal text output:
# ./ethtool -a eth0
Pause parameters for eth0:
Autonegotiate: on
RX: on
TX: on
RX negotiated: on
TX negotiated: on
JSON:
# ./ethtool --json -a eth0
[ {
"ifname": "eth0",
"autonegotiate": true,
"rx": true,