From: Ilan Tayari <redacted>
Currently it is not possible to build just one .o file inside
a subdirectory, because the subdirectories lack a Makefile.
Add a Makefile to the mlx5 subdirectories.
Fixes: e29341fb3a5b ("net/mlx5: FPGA, Add basic support for Innova")
Signed-off-by: Ilan Tayari <redacted>
Reported-by: David Miller <davem@davemloft.net>
Signed-off-by: Saeed Mahameed <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/accel/Makefile | 1 +
drivers/net/ethernet/mellanox/mlx5/core/en_accel/Makefile | 1 +
drivers/net/ethernet/mellanox/mlx5/core/fpga/Makefile | 1 +
drivers/net/ethernet/mellanox/mlx5/core/ipoib/Makefile | 1 +
drivers/net/ethernet/mellanox/mlx5/core/lib/Makefile | 1 +
5 files changed, 5 insertions(+)
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/accel/Makefile
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/en_accel/Makefile
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/fpga/Makefile
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/ipoib/Makefile
create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/lib/Makefile
From: Ilan Tayari <redacted>
Fix warning when building with -Wall:
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c:105:5: warning: symbol 'mlx5_fpga_device_brb' was not declared. Should it be static?
Fixes: c43051d72a8d ("net/mlx5: FPGA, Add SBU bypass and reset flows")
Reported-by: Or Gerlitz <redacted>
Signed-off-by: Ilan Tayari <redacted>
Signed-off-by: Saeed Mahameed <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Ilan Tayari <redacted>
Fix warnings when building with -Wall:
drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c:38:6: warning: symbol 'mlx5_init_reserved_gids' was not declared. Should it be static?
drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c:47:6: warning: symbol 'mlx5_cleanup_reserved_gids' was not declared. Should it be static?
drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c:55:5: warning: symbol 'mlx5_core_reserve_gids' was not declared. Should it be static?
drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c:79:6: warning: symbol 'mlx5_core_unreserve_gids' was not declared. Should it be static?
drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c:92:5: warning: symbol 'mlx5_core_reserved_gid_alloc' was not declared. Should it be static?
drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c:109:6: warning: symbol 'mlx5_core_reserved_gid_free' was not declared. Should it be static?
Fixes: 52ec462eca9b ("net/mlx5: Add reserved-gids support")
Reported-by: Or Gerlitz <redacted>
Signed-off-by: Ilan Tayari <redacted>
Signed-off-by: Saeed Mahameed <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c | 1 +
1 file changed, 1 insertion(+)
From: Ilan Tayari <redacted>
Both the ethernet and FPGA portions of MLX5 now require the wq functions,
and we get a link error when CONFIG_MLX5_CORE_EN is disabled:
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.o: In function `mlx5_fpga_conn_create_cq':
conn.c:(.text+0x10b3): undefined reference to `mlx5_cqwq_create'
conn.c:(.text+0x10c6): undefined reference to `mlx5_cqwq_get_size'
conn.c:(.text+0x12bc): undefined reference to `mlx5_cqwq_destroy'
Build wq.o even if MLX5_CORE_EN is not selected.
Fixes: 537a50574175 ("net/mlx5: FPGA, Add high-speed connection routines")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ilan Tayari <redacted>
Signed-off-by: Saeed Mahameed <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Huy Nguyen <redacted>
Latest change in open-lldp code uses bytes 6-11 of perm_addr buffer
as the Ethernet source address for the host TLV packet.
Since our driver does not fill these bytes, they stay at zero and
the open-lldp code ends up sending the TLV packet with zero source
address and the switch drops this packet.
The fix is to initialize these bytes to 0xff. The open-lldp code
considers 0xff:ff:ff:ff:ff:ff as the invalid address and falls back to
use the host's mac address as the Ethernet source address.
Fixes: 3a6a931dfb8e ("net/mlx5e: Support DCBX CEE API")
Signed-off-by: Huy Nguyen <redacted>
Reviewed-by: Daniel Jurgens <redacted>
Signed-off-by: Saeed Mahameed <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c | 2 ++
1 file changed, 2 insertions(+)
@@ -363,6 +363,7 @@ void mlx5e_ipsec_build_inverse_table(void){u16mss_inv;u32mss;+u64n;/* Calculate 1/x inverse table for use in GSO data path.*Usingthistable,weprovidetheIPSecacceleratorwiththevalueof
This series includes fixes to mlx5 driver:
- Compilation warnings and issues introduced on v4.12
- Add Makefile to each mlx5 subdir to allow individual file compilation
- Initialize CEE's getpermhwaddr address buffer to 0xff
Please pull and let me know if there's any problem.
Pulled, thanks.
For -stable:
("net/mlx5e: Initialize CEE's getpermhwaddr address buffer to 0xff") Kernels >= 4.10