Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[hermon] Fix inconsistent information in HERMON_SET_PORT_GENERAL_PARAM
pptx and pfctx should not be set together, nor should pprx and pfcrx.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Nov 29, 2010
1 parent 930f009 commit b8f7211
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/drivers/infiniband/hermon.c
Expand Up @@ -2369,12 +2369,10 @@ static int hermon_eth_open ( struct net_device *netdev ) {
v_pptx, 1 );
MLX_FILL_1 ( &set_port.general, 1,
mtu, ( ETH_FRAME_LEN + 40 /* Used by card */ ) );
MLX_FILL_2 ( &set_port.general, 2,
pfctx, ( 1 << FCOE_VLAN_PRIORITY ),
pptx, 1 );
MLX_FILL_2 ( &set_port.general, 3,
pfcrx, ( 1 << FCOE_VLAN_PRIORITY ),
pprx, 1 );
MLX_FILL_1 ( &set_port.general, 2,
pfctx, ( 1 << FCOE_VLAN_PRIORITY ) );
MLX_FILL_1 ( &set_port.general, 3,
pfcrx, ( 1 << FCOE_VLAN_PRIORITY ) );
if ( ( rc = hermon_cmd_set_port ( hermon, 1,
( HERMON_SET_PORT_GENERAL_PARAM |
ibdev->port ),
Expand Down

0 comments on commit b8f7211

Please sign in to comment.