diff options
author | Michael Brown | 2010-11-27 21:38:35 +0100 |
---|---|---|
committer | Michael Brown | 2010-11-27 21:38:35 +0100 |
commit | aa1c59ccfffb1bd0f859cb9b91a4026a7c648b0a (patch) | |
tree | 11a181afa2e073cd80b2f1bc0dbb08ab12c36ebf | |
parent | [fcoe] Use only the first instance of a FIP descriptor (diff) | |
download | ipxe-aa1c59ccfffb1bd0f859cb9b91a4026a7c648b0a.tar.gz ipxe-aa1c59ccfffb1bd0f859cb9b91a4026a7c648b0a.tar.xz ipxe-aa1c59ccfffb1bd0f859cb9b91a4026a7c648b0a.zip |
[hermon] Enable priority flow control on the FCoE priority
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/drivers/infiniband/hermon.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/drivers/infiniband/hermon.c b/src/drivers/infiniband/hermon.c index 60a5620b..91c74550 100644 --- a/src/drivers/infiniband/hermon.c +++ b/src/drivers/infiniband/hermon.c @@ -38,6 +38,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <ipxe/ib_smc.h> #include <ipxe/if_ether.h> #include <ipxe/ethernet.h> +#include <ipxe/fcoe.h> #include "hermon.h" /** @@ -2368,8 +2369,12 @@ 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_1 ( &set_port.general, 2, pptx, 1 ); - MLX_FILL_1 ( &set_port.general, 3, pprx, 1 ); + 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 ); if ( ( rc = hermon_cmd_set_port ( hermon, 1, ( HERMON_SET_PORT_GENERAL_PARAM | ibdev->port ), |