Corcodel Marian <[email protected]> :
[...]
> @@ -7594,7 +7595,7 @@ static int rtl_open(struct net_device *dev)
> if (!tp->TxDescArray)
> goto err_pm_runtime_put;
>
> - tp->RxDescArray = dma_alloc_coherent(&pdev->dev, R8169_RX_RING_BYTES,
> + tp->RxDescArray = dma_alloc_coherent(&pdev->dev, rx_buf_sz,
> &tp->RxPhyAddr, GFP_KERNEL);
1. RxDescArray is the descriptor ring. It does not care about rx_buf_sz.
2. I don't see how R8169_RX_RING_BYTES could reach 17000:
#define NUM_RX_DESC 256U /* Number of Rx descriptor registers */
[...]
#define R8169_RX_RING_BYTES (NUM_RX_DESC * sizeof(struct RxDesc))
[...]
struct RxDesc {
__le32 opts1;
__le32 opts2;
__le64 addr;
};
256 * 16 = 4096
3. The Subject: field should not include the verbose change description.
--
Ueimor
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html