Yu Xiao a61474c41e nfp: ethtool: support reporting link modes
Add support for reporting link modes,
including `Supported link modes` and `Advertised link modes`,
via ethtool $DEV.

A new command `SPCODE_READ_MEDIA` is added to read info from
management firmware. Also, the mapping table `nfp_eth_media_table`
associates the link modes between NFP and kernel. Both of them
help to support this ability.

Signed-off-by: Yu Xiao <yu.xiao@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Link: https://lore.kernel.org/r/20221125113030.141642-1-simon.horman@corigine.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2022-11-29 15:28:52 +01:00
..
2022-11-07 10:19:04 -08:00
2022-10-10 09:10:28 -07:00
2022-11-05 09:02:28 -07:00
2022-11-04 16:03:43 -07:00
2022-10-14 18:41:41 -07:00
2022-11-11 09:03:19 -08:00
2022-09-21 20:33:49 +02:00
2022-10-11 10:53:25 -07:00
2022-10-12 10:23:24 -07:00
2022-10-09 14:05:15 -07:00
2022-10-14 18:41:41 -07:00
2022-11-11 14:08:30 -08:00
2022-10-10 13:13:51 -07:00
2022-10-14 12:38:03 -07:00
2022-11-16 10:36:13 -08:00
2022-10-10 09:10:28 -07:00
2022-10-07 11:32:10 -07:00
2022-10-07 11:24:20 -07:00
2022-11-12 09:27:15 -08:00
2022-11-11 09:13:52 -08:00
2022-10-28 18:31:40 -07:00
2022-10-22 03:29:32 +00:00
2022-10-30 11:31:14 -07:00
2022-10-10 14:02:53 -07:00
2022-10-10 14:02:53 -07:00
2022-10-30 11:31:14 -07:00
2022-11-01 12:21:53 -07:00
2022-11-16 10:49:06 -08:00