diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-12-30 14:54:08 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-12-30 14:54:08 +0000 |
commit | 8646e68235beb11902d497ae1fe0fe4ee777fe11 (patch) | |
tree | 84473c0e179e6279f25e79816efaeae47eebe927 | |
parent | 05a298f61f7894da149deb096693e926cdd71245 (diff) | |
download | FreeBSD-src-8646e68235beb11902d497ae1fe0fe4ee777fe11.zip FreeBSD-src-8646e68235beb11902d497ae1fe0fe4ee777fe11.tar.gz |
10G ER/LR should present itself as LR.
MFC after: 1 week
Submitted by: Shahar Klein <shahark@mellanox.com>
Sponsored by: Mellanox Technologies
-rw-r--r-- | sys/dev/mlx5/mlx5_en/en.h | 2 | ||||
-rw-r--r-- | sys/dev/mlx5/mlx5_en/mlx5_en_main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/mlx5/mlx5_en/en.h b/sys/dev/mlx5/mlx5_en/en.h index bb779d2..7f45444 100644 --- a/sys/dev/mlx5/mlx5_en/en.h +++ b/sys/dev/mlx5/mlx5_en/en.h @@ -698,7 +698,7 @@ enum mlx5e_link_mode { MLX5E_56GBASE_R4 = 8, MLX5E_10GBASE_CR = 12, MLX5E_10GBASE_SR = 13, - MLX5E_10GBASE_ER = 14, + MLX5E_10GBASE_LR = 14, MLX5E_40GBASE_SR4 = 15, MLX5E_40GBASE_LR4 = 16, MLX5E_100GBASE_CR4 = 20, diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c index 63db417..05ab87e 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c @@ -106,8 +106,8 @@ static const struct { .subtype = IFM_10G_SR, .baudrate = IF_Gbps(10ULL), }, - [MLX5E_10GBASE_ER] = { - .subtype = IFM_10G_ER, + [MLX5E_10GBASE_LR] = { + .subtype = IFM_10G_LR, .baudrate = IF_Gbps(10ULL), }, [MLX5E_40GBASE_SR4] = { |