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 13 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,6 +38,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
38 38
 #include <ipxe/ib_smc.h>
39 39
 #include <ipxe/if_ether.h>
40 40
 #include <ipxe/ethernet.h>
41
+#include <ipxe/fcoe.h>
41 42
 #include "hermon.h"
42 43
 
43 44
 /**
@@ -2368,8 +2369,12 @@ static int hermon_eth_open ( struct net_device *netdev ) {
2368 2369
 		     v_pptx, 1 );
2369 2370
 	MLX_FILL_1 ( &set_port.general, 1,
2370 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 2378
 	if ( ( rc = hermon_cmd_set_port ( hermon, 1,
2374 2379
 					  ( HERMON_SET_PORT_GENERAL_PARAM |
2375 2380
 					    ibdev->port ),

Loading…
Cancel
Save