Skip to content

Commit c5531ca

Browse files
committed
Merge branch 'mlx4-next'
Or Gerlitz says: ==================== Mellanox mlx4 driver updates The main feature added by this series are Ido's changes to support Granular QoS for VFs, where for the time being only max rate is supported. Muhammad added support for setting rx-fcs and rx-all through ethtool, and Ido did the interface identify work. Last, add Ido as a maintainer for the mlx4 Ethernet driver! Some of next week is the Passover holiday here and I will be mostly OOO. If needed (...) Ido or Amir will send V1 and such. Rebased against net-next commit 033f46b "crypto: algif - explicitly mark end of data". ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 9f0d34b + db60304 commit c5531ca

File tree

22 files changed

+1023
-134
lines changed

22 files changed

+1023
-134
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6323,6 +6323,7 @@ F: drivers/scsi/megaraid/
63236323

63246324
MELLANOX ETHERNET DRIVER (mlx4_en)
63256325
M: Amir Vadai <[email protected]>
6326+
M: Ido Shamay <[email protected]>
63266327
63276328
S: Supported
63286329
W: http://www.mellanox.com

drivers/infiniband/hw/mlx4/main.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,9 @@ static int mlx4_ib_SET_PORT(struct mlx4_ib_dev *dev, u8 port, int reset_qkey_vio
587587
((__be32 *) mailbox->buf)[1] = cpu_to_be32(cap_mask);
588588
}
589589

590-
err = mlx4_cmd(dev->dev, mailbox->dma, port, 0, MLX4_CMD_SET_PORT,
591-
MLX4_CMD_TIME_CLASS_B, MLX4_CMD_WRAPPED);
590+
err = mlx4_cmd(dev->dev, mailbox->dma, port, MLX4_SET_PORT_IB_OPCODE,
591+
MLX4_CMD_SET_PORT, MLX4_CMD_TIME_CLASS_B,
592+
MLX4_CMD_WRAPPED);
592593

593594
mlx4_free_cmd_mailbox(dev->dev, mailbox);
594595
return err;
@@ -1525,8 +1526,8 @@ static void update_gids_task(struct work_struct *work)
15251526
memcpy(gids, gw->gids, sizeof gw->gids);
15261527

15271528
err = mlx4_cmd(dev, mailbox->dma, MLX4_SET_PORT_GID_TABLE << 8 | gw->port,
1528-
1, MLX4_CMD_SET_PORT, MLX4_CMD_TIME_CLASS_B,
1529-
MLX4_CMD_WRAPPED);
1529+
MLX4_SET_PORT_ETH_OPCODE, MLX4_CMD_SET_PORT,
1530+
MLX4_CMD_TIME_CLASS_B, MLX4_CMD_WRAPPED);
15301531
if (err)
15311532
pr_warn("set port command failed\n");
15321533
else
@@ -1564,7 +1565,7 @@ static void reset_gids_task(struct work_struct *work)
15641565
IB_LINK_LAYER_ETHERNET) {
15651566
err = mlx4_cmd(dev, mailbox->dma,
15661567
MLX4_SET_PORT_GID_TABLE << 8 | gw->port,
1567-
1, MLX4_CMD_SET_PORT,
1568+
MLX4_SET_PORT_ETH_OPCODE, MLX4_CMD_SET_PORT,
15681569
MLX4_CMD_TIME_CLASS_B,
15691570
MLX4_CMD_WRAPPED);
15701571
if (err)

drivers/net/ethernet/mellanox/mlx4/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
obj-$(CONFIG_MLX4_CORE) += mlx4_core.o
22

3-
mlx4_core-y := alloc.o catas.o cmd.o cq.o eq.o fw.o icm.o intf.o main.o mcg.o \
4-
mr.o pd.o port.o profile.o qp.o reset.o sense.o srq.o resource_tracker.o
3+
mlx4_core-y := alloc.o catas.o cmd.o cq.o eq.o fw.o fw_qos.o icm.o intf.o \
4+
main.o mcg.o mr.o pd.o port.o profile.o qp.o reset.o sense.o \
5+
srq.o resource_tracker.o
56

67
obj-$(CONFIG_MLX4_EN) += mlx4_en.o
78

0 commit comments

Comments
 (0)