Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217738
b: refs/heads/master
c: 7ac870e
h: refs/heads/master
v: v3
  • Loading branch information
Eli Cohen authored and Roland Dreier committed Oct 25, 2010
1 parent 511ff16 commit b51e8f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: 96dfa684c85d24b697f865f37a4f0c8678fc86e9
refs/heads/master: 7ac870ed7d2316587ec06747c28cb9f44f67997d
4 changes: 2 additions & 2 deletions trunk/drivers/net/mlx4/en_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ int mlx4_SET_PORT_qpn_calc(struct mlx4_dev *dev, u8 port, u32 base_qpn,
memset(context, 0, sizeof *context);

context->base_qpn = cpu_to_be32(base_qpn);
context->promisc = cpu_to_be32(promisc << SET_PORT_PROMISC_SHIFT | base_qpn);
context->mcast = cpu_to_be32(1 << SET_PORT_PROMISC_SHIFT | base_qpn);
context->promisc = cpu_to_be32(promisc << SET_PORT_PROMISC_EN_SHIFT | base_qpn);
context->mcast = cpu_to_be32(1 << SET_PORT_PROMISC_MODE_SHIFT | base_qpn);
context->intra_no_vlan = 0;
context->no_vlan = MLX4_NO_VLAN_IDX;
context->intra_vlan_miss = 0;
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/net/mlx4/en_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@


#define SET_PORT_GEN_ALL_VALID 0x7
#define SET_PORT_PROMISC_SHIFT 31
#define SET_PORT_PROMISC_EN_SHIFT 31
#define SET_PORT_PROMISC_MODE_SHIFT 30

enum {
MLX4_CMD_SET_VLAN_FLTR = 0x47,
Expand Down

0 comments on commit b51e8f9

Please sign in to comment.