Commit 09ee3b4a authored by Kunihiko Hayashi's avatar Kunihiko Hayashi Committed by David S. Miller

net: ethernet: ave: Increase descriptors to improve performance

To improve performance, this increases Rx descriptor to 256, Tx descriptor
to 64, and adjusts NAPI weight to NAPI_POLL_WEIGHT.
Signed-off-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 60b54823
...@@ -185,8 +185,8 @@ ...@@ -185,8 +185,8 @@
NETIF_MSG_TX_ERR) NETIF_MSG_TX_ERR)
/* Parameter for descriptor */ /* Parameter for descriptor */
#define AVE_NR_TXDESC 32 /* Tx descriptor */ #define AVE_NR_TXDESC 64 /* Tx descriptor */
#define AVE_NR_RXDESC 64 /* Rx descriptor */ #define AVE_NR_RXDESC 256 /* Rx descriptor */
#define AVE_DESC_OFS_CMDSTS 0 #define AVE_DESC_OFS_CMDSTS 0
#define AVE_DESC_OFS_ADDRL 4 #define AVE_DESC_OFS_ADDRL 4
...@@ -1689,9 +1689,10 @@ static int ave_probe(struct platform_device *pdev) ...@@ -1689,9 +1689,10 @@ static int ave_probe(struct platform_device *pdev)
pdev->name, pdev->id); pdev->name, pdev->id);
/* Register as a NAPI supported driver */ /* Register as a NAPI supported driver */
netif_napi_add(ndev, &priv->napi_rx, ave_napi_poll_rx, priv->rx.ndesc); netif_napi_add(ndev, &priv->napi_rx, ave_napi_poll_rx,
NAPI_POLL_WEIGHT);
netif_tx_napi_add(ndev, &priv->napi_tx, ave_napi_poll_tx, netif_tx_napi_add(ndev, &priv->napi_tx, ave_napi_poll_tx,
priv->tx.ndesc); NAPI_POLL_WEIGHT);
platform_set_drvdata(pdev, ndev); platform_set_drvdata(pdev, ndev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment