Browse Source

[hermon] Enable priority flow control on the FCoE priority

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 years ago
parent
commit
aa1c59ccff
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      src/drivers/infiniband/hermon.c

+ 7
- 2
src/drivers/infiniband/hermon.c View File

38
 #include <ipxe/ib_smc.h>
38
 #include <ipxe/ib_smc.h>
39
 #include <ipxe/if_ether.h>
39
 #include <ipxe/if_ether.h>
40
 #include <ipxe/ethernet.h>
40
 #include <ipxe/ethernet.h>
41
+#include <ipxe/fcoe.h>
41
 #include "hermon.h"
42
 #include "hermon.h"
42
 
43
 
43
 /**
44
 /**
2368
 		     v_pptx, 1 );
2369
 		     v_pptx, 1 );
2369
 	MLX_FILL_1 ( &set_port.general, 1,
2370
 	MLX_FILL_1 ( &set_port.general, 1,
2370
 		     mtu, ( ETH_FRAME_LEN + 40 /* Used by card */ ) );
2371
 		     mtu, ( ETH_FRAME_LEN + 40 /* Used by card */ ) );
2371
-	MLX_FILL_1 ( &set_port.general, 2, pptx, 1 );
2372
-	MLX_FILL_1 ( &set_port.general, 3, pprx, 1 );
2372
+	MLX_FILL_2 ( &set_port.general, 2,
2373
+		     pfctx, ( 1 << FCOE_VLAN_PRIORITY ),
2374
+		     pptx, 1 );
2375
+	MLX_FILL_2 ( &set_port.general, 3,
2376
+		     pfcrx, ( 1 << FCOE_VLAN_PRIORITY ),
2377
+		     pprx, 1 );
2373
 	if ( ( rc = hermon_cmd_set_port ( hermon, 1,
2378
 	if ( ( rc = hermon_cmd_set_port ( hermon, 1,
2374
 					  ( HERMON_SET_PORT_GENERAL_PARAM |
2379
 					  ( HERMON_SET_PORT_GENERAL_PARAM |
2375
 					    ibdev->port ),
2380
 					    ibdev->port ),

Loading…
Cancel
Save