Kaynağa Gözat

[hermon] Fix inconsistent information in HERMON_SET_PORT_GENERAL_PARAM

pptx and pfctx should not be set together, nor should pprx and pfcrx.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 yıl önce
ebeveyn
işleme
b8f721123b
1 değiştirilmiş dosya ile 4 ekleme ve 6 silme
  1. 4
    6
      src/drivers/infiniband/hermon.c

+ 4
- 6
src/drivers/infiniband/hermon.c Dosyayı Görüntüle

@@ -2369,12 +2369,10 @@ static int hermon_eth_open ( struct net_device *netdev ) {
2369 2369
 		     v_pptx, 1 );
2370 2370
 	MLX_FILL_1 ( &set_port.general, 1,
2371 2371
 		     mtu, ( ETH_FRAME_LEN + 40 /* Used by card */ ) );
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 );
2372
+	MLX_FILL_1 ( &set_port.general, 2,
2373
+		     pfctx, ( 1 << FCOE_VLAN_PRIORITY ) );
2374
+	MLX_FILL_1 ( &set_port.general, 3,
2375
+		     pfcrx, ( 1 << FCOE_VLAN_PRIORITY ) );
2378 2376
 	if ( ( rc = hermon_cmd_set_port ( hermon, 1,
2379 2377
 					  ( HERMON_SET_PORT_GENERAL_PARAM |
2380 2378
 					    ibdev->port ),

Loading…
İptal
Kaydet