瀏覽代碼

[hermon] Enable priority flow control on the FCoE priority

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 年之前
父節點
當前提交
aa1c59ccff
共有 1 個檔案被更改,包括 7 行新增2 行删除
  1. 7
    2
      src/drivers/infiniband/hermon.c

+ 7
- 2
src/drivers/infiniband/hermon.c 查看文件

@@ -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…
取消
儲存