mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
mlx5-fixes-2017-07-09
This series includes fixes to mlx5 driver: - Compilation warnings and issues introduced on v4.12 - Initialize CEE's getpermhwaddr address buffer to 0xff -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJZYiE3AAoJEEg/ir3gV/o+/GYH/1qly/TNGUbmLyxFmx5dHBlI 1V98Rxrrk/Y2eA+PtcgHzJKcZ/vcAYhwAY/3JIY3qfiWyD/GAfK3hPcemMpNNyCj va9C9SUEcGr6JEZ0UgGQDcmU3aWs1yslMe7+ZiW9k1EcG0HvEmaB2BPLRmVKxUWX 6gF0qdIGuj0wu7PL/ly5CZQ5jl8r6oKp665YJxvaJlVCaZYyZZgzuXK/MHuCZRbK ziIONkmtGzfBb/Yocxgr2lSR+1PIFpDtRysBbhYJDlsMCPo3XMT+M+xJI92kH6ZP pj8NxDvUTCHtyrmAk5aUxRzta71uqY6XgjR+PBwecG47jJ/+0kryxj1MU008diA= =ebzr -----END PGP SIGNATURE----- Merge tag 'mlx5-fixes-2017-07-09' of https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux Saeed Mahameed says: ==================== mlx5-fixes-2017-07-09 This series includes fixes to mlx5 driver: - Compilation warnings and issues introduced on v4.12 - Initialize CEE's getpermhwaddr address buffer to 0xff ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
b36c20244a
@ -4,14 +4,14 @@ subdir-ccflags-y += -I$(src)
|
||||
mlx5_core-y := main.o cmd.o debugfs.o fw.o eq.o uar.o pagealloc.o \
|
||||
health.o mcg.o cq.o srq.o alloc.o qp.o port.o mr.o pd.o \
|
||||
mad.o transobj.o vport.o sriov.o fs_cmd.o fs_core.o \
|
||||
fs_counters.o rl.o lag.o dev.o lib/gid.o
|
||||
fs_counters.o rl.o lag.o dev.o wq.o lib/gid.o
|
||||
|
||||
mlx5_core-$(CONFIG_MLX5_ACCEL) += accel/ipsec.o
|
||||
|
||||
mlx5_core-$(CONFIG_MLX5_FPGA) += fpga/cmd.o fpga/core.o fpga/conn.o fpga/sdk.o \
|
||||
fpga/ipsec.o
|
||||
|
||||
mlx5_core-$(CONFIG_MLX5_CORE_EN) += wq.o eswitch.o eswitch_offloads.o \
|
||||
mlx5_core-$(CONFIG_MLX5_CORE_EN) += eswitch.o eswitch_offloads.o \
|
||||
en_main.o en_common.o en_fs.o en_ethtool.o en_tx.o \
|
||||
en_rx.o en_rx_am.o en_txrx.o en_clock.o vxlan.o \
|
||||
en_tc.o en_arfs.o en_rep.o en_fs_ethtool.o en_selftest.o
|
||||
|
1
drivers/net/ethernet/mellanox/mlx5/core/accel/Makefile
Normal file
1
drivers/net/ethernet/mellanox/mlx5/core/accel/Makefile
Normal file
@ -0,0 +1 @@
|
||||
subdir-ccflags-y += -I$(src)/..
|
@ -0,0 +1 @@
|
||||
subdir-ccflags-y += -I$(src)/..
|
@ -363,6 +363,7 @@ void mlx5e_ipsec_build_inverse_table(void)
|
||||
{
|
||||
u16 mss_inv;
|
||||
u32 mss;
|
||||
u64 n;
|
||||
|
||||
/* Calculate 1/x inverse table for use in GSO data path.
|
||||
* Using this table, we provide the IPSec accelerator with the value of
|
||||
@ -372,7 +373,8 @@ void mlx5e_ipsec_build_inverse_table(void)
|
||||
*/
|
||||
mlx5e_ipsec_inverse_table[1] = htons(0xFFFF);
|
||||
for (mss = 2; mss < MAX_LSO_MSS; mss++) {
|
||||
mss_inv = ((1ULL << 32) / mss) >> 16;
|
||||
n = 1ULL << 32;
|
||||
mss_inv = do_div(n, mss) >> 16;
|
||||
mlx5e_ipsec_inverse_table[mss] = htons(mss_inv);
|
||||
}
|
||||
}
|
||||
|
@ -464,6 +464,8 @@ static void mlx5e_dcbnl_getpermhwaddr(struct net_device *netdev,
|
||||
if (!perm_addr)
|
||||
return;
|
||||
|
||||
memset(perm_addr, 0xff, MAX_ADDR_LEN);
|
||||
|
||||
mlx5_query_nic_vport_mac_address(priv->mdev, 0, perm_addr);
|
||||
}
|
||||
|
||||
|
1
drivers/net/ethernet/mellanox/mlx5/core/fpga/Makefile
Normal file
1
drivers/net/ethernet/mellanox/mlx5/core/fpga/Makefile
Normal file
@ -0,0 +1 @@
|
||||
subdir-ccflags-y += -I$(src)/..
|
@ -102,7 +102,7 @@ static int mlx5_fpga_device_load_check(struct mlx5_fpga_device *fdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mlx5_fpga_device_brb(struct mlx5_fpga_device *fdev)
|
||||
static int mlx5_fpga_device_brb(struct mlx5_fpga_device *fdev)
|
||||
{
|
||||
int err;
|
||||
struct mlx5_core_dev *mdev = fdev->mdev;
|
||||
|
@ -275,7 +275,7 @@ int mlx5_fpga_ipsec_counters_read(struct mlx5_core_dev *mdev, u64 *counters,
|
||||
{
|
||||
struct mlx5_fpga_device *fdev = mdev->fpga;
|
||||
unsigned int i;
|
||||
u32 *data;
|
||||
__be32 *data;
|
||||
u32 count;
|
||||
u64 addr;
|
||||
int ret;
|
||||
@ -290,7 +290,7 @@ int mlx5_fpga_ipsec_counters_read(struct mlx5_core_dev *mdev, u64 *counters,
|
||||
|
||||
count = mlx5_fpga_ipsec_counters_count(mdev);
|
||||
|
||||
data = kzalloc(sizeof(u32) * count * 2, GFP_KERNEL);
|
||||
data = kzalloc(sizeof(*data) * count * 2, GFP_KERNEL);
|
||||
if (!data) {
|
||||
ret = -ENOMEM;
|
||||
goto out;
|
||||
|
1
drivers/net/ethernet/mellanox/mlx5/core/ipoib/Makefile
Normal file
1
drivers/net/ethernet/mellanox/mlx5/core/ipoib/Makefile
Normal file
@ -0,0 +1 @@
|
||||
subdir-ccflags-y += -I$(src)/..
|
1
drivers/net/ethernet/mellanox/mlx5/core/lib/Makefile
Normal file
1
drivers/net/ethernet/mellanox/mlx5/core/lib/Makefile
Normal file
@ -0,0 +1 @@
|
||||
subdir-ccflags-y += -I$(src)/..
|
@ -34,6 +34,7 @@
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/idr.h>
|
||||
#include "mlx5_core.h"
|
||||
#include "lib/mlx5.h"
|
||||
|
||||
void mlx5_init_reserved_gids(struct mlx5_core_dev *dev)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user