1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox/mlx5/core/en
Aya Levin 4b95840a6c net/mlx5e: Fix matching of speed to PRM link modes
Speed translation is performed based on legacy or extended PTYS
register. Translate speed with respect to:
1) Capability bit of extended PTYS table.
2) User request:
 a) When auto-negotiation is turned on, inspect advertisement whether it
 contains extended link modes.
 b) When auto-negotiation is turned off, speed > 100Gbps (maximal
 speed supported in legacy mode).
With both conditions fulfilled translation is done with extended PTYS
table otherwise use legacy PTYS table.
Without this patch 25/50/100 Gbps speed cannot be set, since try to
configure in extended mode but read from legacy mode.

Fixes: dd1b9e09c1 ("net/mlx5: ethtool, Allow legacy link-modes configuration via non-extended ptys")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2019-07-25 13:31:00 -07:00
..
xsk Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2019-07-04 12:48:21 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
fs.h net/mlx5e: Refactor TIR configuration function 2018-12-05 16:00:33 -08:00
monitor_stats.c net/mlx5e: Add missing static function annotation 2019-02-19 14:15:03 -08:00
monitor_stats.h net/mlx5e: Monitor counters commands support 2018-12-11 14:52:20 -08:00
params.c net/mlx5e: Add XSK zero-copy support 2019-06-27 22:53:28 +02:00
params.h net/mlx5e: Fix wrong max num channels indication 2019-07-25 13:30:59 -07:00
port.c net/mlx5e: Fix matching of speed to PRM link modes 2019-07-25 13:31:00 -07:00
port.h net/mlx5e: Fix matching of speed to PRM link modes 2019-07-25 13:31:00 -07:00
port_buffer.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-04-05 14:14:19 -07:00
port_buffer.h net/mlx5e: Receive buffer configuration 2018-05-24 14:23:33 -07:00
reporter.h net/mlx5e: Add tx timeout support for mlx5e tx reporter 2019-02-07 10:34:29 -08:00
reporter_tx.c net/mlx5e: Fix error flow in tx reporter diagnose 2019-07-11 11:45:04 -07:00
tc_tun.c net: flow_offload: rename tc_cls_flower_offload to flow_cls_offload 2019-07-09 14:38:51 -07:00
tc_tun.h net: flow_offload: rename tc_cls_flower_offload to flow_cls_offload 2019-07-09 14:38:51 -07:00
tc_tun_geneve.c net: flow_offload: rename tc_cls_flower_offload to flow_cls_offload 2019-07-09 14:38:51 -07:00
tc_tun_gre.c net: flow_offload: rename tc_cls_flower_offload to flow_cls_offload 2019-07-09 14:38:51 -07:00
tc_tun_vxlan.c net: flow_offload: rename tc_cls_flower_offload to flow_cls_offload 2019-07-09 14:38:51 -07:00
txrx.h net/mlx5e: Add kTLS TX HW offload support 2019-07-05 16:29:20 -07:00
xdp.c net/mlx5e: Add XSK zero-copy support 2019-06-27 22:53:28 +02:00
xdp.h net/mlx5e: Move helper functions to a new txrx datapath header 2019-07-05 16:29:19 -07:00