Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352020
b: refs/heads/master
c: 015465f
h: refs/heads/master
v: v3
  • Loading branch information
Hadar Hen Zion authored and David S. Miller committed Jan 31, 2013
1 parent ab90bd9 commit 9d72581
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b13c97fae9c61dc20db8e0d0a72a29df29ac377
refs/heads/master: 015465f85193fdc3a0debb1c9176433ba19140b2
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/mellanox/mlx4/mcg.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ static void trans_rule_ctrl_to_hw(struct mlx4_net_trans_rule *ctrl,
dw |= ctrl->priority << 16;

hw->ctrl = cpu_to_be32(dw);
hw->vf_vep_port = cpu_to_be32(ctrl->port);
hw->port = ctrl->port;
hw->qpn = cpu_to_be32(ctrl->qpn);
}

Expand Down
7 changes: 5 additions & 2 deletions trunk/drivers/net/ethernet/mellanox/mlx4/mlx4.h
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,12 @@ struct mlx4_steer {

struct mlx4_net_trans_rule_hw_ctrl {
__be32 ctrl;
__be32 vf_vep_port;
u8 rsvd1;
u8 funcid;
u8 vep;
u8 port;
__be32 qpn;
__be32 reserved;
__be32 rsvd2;
};

struct mlx4_net_trans_rule_hw_ib {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3018,7 +3018,7 @@ static int add_eth_header(struct mlx4_dev *dev, int slave,
__be64 mac_msk = cpu_to_be64(MLX4_MAC_MASK << 16);

ctrl = (struct mlx4_net_trans_rule_hw_ctrl *)inbox->buf;
port = be32_to_cpu(ctrl->vf_vep_port) & 0xff;
port = ctrl->port;
eth_header = (struct mlx4_net_trans_rule_hw_eth *)(ctrl + 1);

/* Clear a space in the inbox for eth header */
Expand Down

0 comments on commit 9d72581

Please sign in to comment.