diff options
author | Yu Xiao <yu.xiao@corigine.com> | 2022-06-08 11:43:12 +0200 |
---|---|---|
committer | Michal Kubecek <mkubecek@suse.cz> | 2022-06-14 00:49:00 +0200 |
commit | 2b3ddcb35357ae34ed0a6ae2bb006dcdaec353a9 (patch) | |
tree | 06fc68dac397585350be1f63ca89b0a3f124c264 | |
parent | d660dde1b76bd07efdfef2bac4dd99ebf6c247c6 (diff) | |
download | ethtool-2b3ddcb35357ae34ed0a6ae2bb006dcdaec353a9.tar.gz |
ethtool: fec: Change the prompt string to adapt to current situations
Majority upstream drivers uses `Configured FEC encodings` to report
supported modes. At which point it is better to change the text in
ethtool user space that changes the meaning of the field, which is
better to suit for the current situations.
So changing `Configured FEC encodings` to `Supported/Configured FEC
encodings` to adapt to both implementations.
Signed-off-by: Yu Xiao <yu.xiao@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
-rw-r--r-- | ethtool.c | 2 | ||||
-rw-r--r-- | netlink/fec.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -5567,7 +5567,7 @@ static int do_gfec(struct cmd_context *ctx) } fprintf(stdout, "FEC parameters for %s:\n", ctx->devname); - fprintf(stdout, "Configured FEC encodings:"); + fprintf(stdout, "Supported/Configured FEC encodings:"); dump_fec(feccmd.fec); fprintf(stdout, "\n"); diff --git a/netlink/fec.c b/netlink/fec.c index f265919..695724e 100644 --- a/netlink/fec.c +++ b/netlink/fec.c @@ -153,7 +153,7 @@ int fec_reply_cb(const struct nlmsghdr *nlhdr, void *data) print_string(PRINT_ANY, "ifname", "FEC parameters for %s:\n", nlctx->devname); - open_json_array("config", "Configured FEC encodings:"); + open_json_array("config", "Supported/Configured FEC encodings:"); fa = tb[ETHTOOL_A_FEC_AUTO] && mnl_attr_get_u8(tb[ETHTOOL_A_FEC_AUTO]); if (fa) print_string(PRINT_ANY, NULL, " %s", "Auto"); |