r8169:Fill with zero Tx descriptors
PATCH 1/1 r8169:Fill with zero Tx descriptors
This patch fill with zero Tx descriptors before use.Is only
on part by more patches but is critical.(critical)
Signed-off-by Corcodel Marian <[email protected]>
drivers/net/ethernet/realtek/r8169.c +1 -1
@@ -7589,7 +7589,7 @@ static int rtl_open(struct net_device *dev)* Rx and Tx descriptors needs 256 bytes alignment. * dma_alloc_coherent provides more. */ - tp->TxDescArray =dma_alloc_coherent (&pdev->dev,R8169_TX_RING_BYTES , + tp->TxDescArray =dma_zalloc_coherent (&pdev->dev,R8169_TX_RING_BYTES , &tp->TxPhyAddr,GFP_KERNEL );if (!tp->TxDescArray) goto err_pm_runtime_put;
Signature · 1 line
2.1.4
Hello.
Quoted 11 lines · Corcodel Marian
This patch fill with zero Tx descriptors before use.Is only
on part by more patches but is critical.(critical)Signed-off-by Corcodel Marian <[email protected]>drivers/net/ethernet/realtek/r8169.c +0
-0
drivers/net/ethernet/realtek/r8169.c static int rtl_open(struct net_device *dev) · line 7593
Quoted 6 lines
drivers/net/ethernet/realtek/r8169.c +1
-1@@ -7589,7 +7589,7 @@ static int rtl_open(struct net_device *dev)* Rx and Tx descriptors needs 256 bytes alignment. * dma_alloc_coherent provides more. */ - tp->TxDescArray =dma_alloc_coherent (&pdev->dev,R8169_TX_RING_BYTES , + tp->TxDescArray =dma_zalloc_coherent (&pdev->dev,R8169_TX_RING_BYTES , &tp->TxPhyAddr,GFP_KERNEL );
Please re-align the continuation line.
[...]
MBR, Sergei
Quoted 12 lines · Corcodel Marian
This patch fill with zero Tx descriptors before use.Is only
on part by more patches but is critical.(critical)Signed-off-by Corcodel Marian <[email protected]>drivers/net/ethernet/realtek/r8169.c +0
-0
drivers/net/ethernet/realtek/r8169.c static int rtl_open(struct net_device *dev) · line 7595
Quoted 8 lines
drivers/net/ethernet/realtek/r8169.c +1
-1@@ -7589,7 +7589,7 @@ static int rtl_open(struct net_device *dev)* Rx and Tx descriptors needs 256 bytes alignment. * dma_alloc_coherent provides more. */ - tp->TxDescArray =dma_alloc_coherent (&pdev->dev,R8169_TX_RING_BYTES , + tp->TxDescArray =dma_zalloc_coherent (&pdev->dev,R8169_TX_RING_BYTES , &tp->TxPhyAddr,GFP_KERNEL );if (!tp->TxDescArray) goto err_pm_runtime_put;
Why? Why is zero-filling of tx-ring critical???
Ivan