Skip to content

Commit

Permalink
beceem: reduce transmit queue len
Browse files Browse the repository at this point in the history
Reduce transmit queue length to avoid excess buffering

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
  • Loading branch information
Stephen Hemminger committed Nov 1, 2010
1 parent 9c6e9aa commit d7affd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion drivers/staging/bcm/Bcmnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions drivers/staging/bcm/Macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
#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

Expand Down

0 comments on commit d7affd0

Please sign in to comment.