]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[hermon] Enable priority flow control on the FCoE priority
authorMichael Brown <mcb30@ipxe.org>
Sat, 27 Nov 2010 20:38:35 +0000 (20:38 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sat, 27 Nov 2010 20:38:35 +0000 (20:38 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/hermon.c

index 60a5620bc08cd6ad02eee2cfd58fac9a27ee460b..91c7455097fd634f0a0757679e010823b8974985 100644 (file)
@@ -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 ),