lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 6 May 2009 22:15:08 +0200 From: Wolfgang Denk <wd@...x.de> To: linuxppc-dev@...abs.org Cc: Piotr Ziecik <kosmo@...ihalf.com>, Wolfgang Denk <wd@...x.de>, <netdev@...r.kernel.org>, Grant Likely <grant.likely@...retlab.ca>, John Rigby <jcrigby@...il.com> Subject: [PATCH 01/12] fs_enet: Use defines to set driver tunables. From: Piotr Ziecik <kosmo@...ihalf.com> Signed-off-by: Piotr Ziecik <kosmo@...ihalf.com> Signed-off-by: Wolfgang Denk <wd@...x.de> Cc: <netdev@...r.kernel.org> Cc: Grant Likely <grant.likely@...retlab.ca> Cc: John Rigby <jcrigby@...il.com> --- drivers/net/fs_enet/fs_enet-main.c | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/drivers/net/fs_enet/fs_enet-main.c b/drivers/net/fs_enet/fs_enet-main.c index a9cbc31..f996a1a 100644 --- a/drivers/net/fs_enet/fs_enet-main.c +++ b/drivers/net/fs_enet/fs_enet-main.c @@ -46,6 +46,15 @@ #include "fs_enet.h" +/* Driver tunables */ + +#define ENET_RX_RING_SIZE 32 +#define ENET_TX_RING_SIZE 32 +#define ENET_RX_COPYBREAK 240 + +#define ENET_USE_NAPI 1 +#define ENET_NAPI_WEIGHT 17 + /*************************************************/ MODULE_AUTHOR("Pantelis Antoniou <panto@...racom.gr>"); @@ -1057,11 +1066,11 @@ static int __devinit fs_enet_probe(struct of_device *ofdev, fpi->cp_command = *data; } - fpi->rx_ring = 32; - fpi->tx_ring = 32; - fpi->rx_copybreak = 240; - fpi->use_napi = 1; - fpi->napi_weight = 17; + fpi->rx_ring = ENET_RX_RING_SIZE; + fpi->tx_ring = ENET_TX_RING_SIZE; + fpi->rx_copybreak = ENET_RX_COPYBREAK; + fpi->use_napi = ENET_USE_NAPI; + fpi->napi_weight = ENET_NAPI_WEIGHT; ret = find_phy(ofdev->node, fpi); if (ret) -- 1.6.0.6 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists