Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6311b7b authored by Ilias Apalodimas's avatar Ilias Apalodimas Committed by David S. Miller
Browse files

net: socionext: Increase descriptors to 256



Increasing descriptors to 256 from 128 and adjusting the NAPI weight
to 64 increases performace on Rx by ~20% on 64byte packets

Signed-off-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 63ae7949
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -232,8 +232,7 @@
#define NETSEC_EEPROM_PKT_ME_ADDRESS		0x20
#define NETSEC_EEPROM_PKT_ME_ADDRESS		0x20
#define NETSEC_EEPROM_PKT_ME_SIZE		0x24
#define NETSEC_EEPROM_PKT_ME_SIZE		0x24


#define DESC_NUM	128
#define DESC_NUM	256
#define NAPI_BUDGET	(DESC_NUM / 2)


#define DESC_SZ	sizeof(struct netsec_de)
#define DESC_SZ	sizeof(struct netsec_de)


@@ -1659,7 +1658,7 @@ static int netsec_probe(struct platform_device *pdev)
	dev_info(&pdev->dev, "hardware revision %d.%d\n",
	dev_info(&pdev->dev, "hardware revision %d.%d\n",
		 hw_ver >> 16, hw_ver & 0xffff);
		 hw_ver >> 16, hw_ver & 0xffff);


	netif_napi_add(ndev, &priv->napi, netsec_napi_poll, NAPI_BUDGET);
	netif_napi_add(ndev, &priv->napi, netsec_napi_poll, NAPI_POLL_WEIGHT);


	ndev->netdev_ops = &netsec_netdev_ops;
	ndev->netdev_ops = &netsec_netdev_ops;
	ndev->ethtool_ops = &netsec_ethtool_ops;
	ndev->ethtool_ops = &netsec_ethtool_ops;