aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/mcg.c14
-rw-r--r--include/linux/mlx4/device.h4
2 files changed, 10 insertions, 8 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mcg.c b/drivers/net/ethernet/mellanox/mlx4/mcg.c
index 3cfd3725961d..07712f976c8f 100644
--- a/drivers/net/ethernet/mellanox/mlx4/mcg.c
+++ b/drivers/net/ethernet/mellanox/mlx4/mcg.c
@@ -656,15 +656,15 @@ static void trans_rule_ctrl_to_hw(struct mlx4_net_trans_rule *ctrl,
656 [MLX4_FS_MC_SNIFFER] = 0x5, 656 [MLX4_FS_MC_SNIFFER] = 0x5,
657 }; 657 };
658 658
659 u32 dw = 0; 659 u8 flags = 0;
660 660
661 dw = ctrl->queue_mode == MLX4_NET_TRANS_Q_LIFO ? 1 : 0; 661 flags = ctrl->queue_mode == MLX4_NET_TRANS_Q_LIFO ? 1 : 0;
662 dw |= ctrl->exclusive ? (1 << 2) : 0; 662 flags |= ctrl->exclusive ? (1 << 2) : 0;
663 dw |= ctrl->allow_loopback ? (1 << 3) : 0; 663 flags |= ctrl->allow_loopback ? (1 << 3) : 0;
664 dw |= __promisc_mode[ctrl->promisc_mode] << 8;
665 dw |= ctrl->priority << 16;
666 664
667 hw->ctrl = cpu_to_be32(dw); 665 hw->flags = flags;
666 hw->type = __promisc_mode[ctrl->promisc_mode];
667 hw->prio = cpu_to_be16(ctrl->priority);
668 hw->port = ctrl->port; 668 hw->port = ctrl->port;
669 hw->qpn = cpu_to_be32(ctrl->qpn); 669 hw->qpn = cpu_to_be32(ctrl->qpn);
670} 670}
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index a69bda77c1d1..08e5bc1387e1 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -964,7 +964,9 @@ struct mlx4_net_trans_rule {
964}; 964};
965 965
966struct mlx4_net_trans_rule_hw_ctrl { 966struct mlx4_net_trans_rule_hw_ctrl {
967 __be32 ctrl; 967 __be16 prio;
968 u8 type;
969 u8 flags;
968 u8 rsvd1; 970 u8 rsvd1;
969 u8 funcid; 971 u8 funcid;
970 u8 vep; 972 u8 vep;