beceem: reduce transmit queue len
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Sat, 30 Oct 2010 00:15:06 +0000 (17:15 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 1 Nov 2010 13:50:23 +0000 (09:50 -0400)
Reduce transmit queue length to avoid excess buffering

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
drivers/staging/bcm/Bcmnet.c
drivers/staging/bcm/Macros.h

index f0549912c9ec13189b9360717e4a4de06859a90e..c77c1d1e615786f3c1cdc5f8902a14154d0aae05 100644 (file)
@@ -143,7 +143,8 @@ int register_networkdev(PMINI_ADAPTER Adapter)
 
         net->netdev_ops = &bcmNetDevOps;
        net->ethtool_ops = &bcm_ethtool_ops;
-       net->mtu        = MTU_SIZE; /* 1400 Bytes */
+       net->mtu          = MTU_SIZE; /* 1400 Bytes */
+       net->tx_queue_len = TX_QLEN;
 
        SET_NETDEV_DEV(net, &uintf->dev);
        SET_NETDEV_DEVTYPE(net, &wimax_type);
index 3868e5b9444398dbfc1482d0b7db38e2c9cae9db..338b61d5c1337faf408b628ec045ba8f4d126975 100644 (file)
 #define MAX_DATA_PKTS          200
 #define MAX_ETH_SIZE           1536
 #define MAX_CNTL_PKT_SIZE 2048
-/* TIMER RELATED */
-#define JIFFIES_2_QUADPART()   (ULONG)(jiffies * 10000) // jiffies(1msec) to Quadpart(100nsec)
 
 #define MTU_SIZE 1400
+#define TX_QLEN  5
 
 #define MAC_ADDR_REGISTER 0xbf60d000