]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Mutually exclude RX-FCS and RX-port-timestamp
authorAya Levin <ayal@nvidia.com>
Sun, 26 Sep 2021 14:55:41 +0000 (17:55 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 12 Oct 2021 20:51:59 +0000 (13:51 -0700)
commit4429bbac38f9f8650b48a1c1579756d357974d36
treeef964cbdd7ae3350f9ad44c77333e0e321d59141
parenta9bf27dd41871d6f5b6ba3a111f110b1e5dce4d3
net/mlx5e: Mutually exclude RX-FCS and RX-port-timestamp

Due to current HW arch limitations, RX-FCS (scattering FCS frame field
to software) and RX-port-timestamp (improved timestamp accuracy on the
receive side) can't work together.
RX-port-timestamp is not controlled by the user and it is enabled by
default when supported by the HW/FW.
This patch sets RX-port-timestamp opposite to RX-FCS configuration.

Fixes: 77715448cda3 ("net/mlx5e: Add support for RXFCS feature flag")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
include/linux/mlx5/mlx5_ifc.h