net: rmnet_data: Add default value for tx_queue_len
The default value of tx_queue_len was 0 which was causing packet drops because of queueing in tc. This patch sets a fixed value for the tx_queue_len CRs-Fixed: 609873 Change-Id: I51739e63223b563f7cf8838d88908db7dcc9bf3e Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
This commit is contained in:
parent
46fa5323ca
commit
a207285d7f
2 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
#define RMNET_DATA_DFLT_PACKET_SIZE 1500
|
||||
#define RMNET_DATA_DEV_NAME_STR "rmnet_data"
|
||||
#define RMNET_DATA_NEEDED_HEADROOM 16
|
||||
#define RMNET_DATA_TX_QUEUE_LEN 1000
|
||||
#define RMNET_ETHERNET_HEADER_LENGTH 14
|
||||
|
||||
extern unsigned int rmnet_data_log_level;
|
||||
|
|
|
@ -466,6 +466,7 @@ static void rmnet_vnd_setup(struct net_device *dev)
|
|||
dev->needed_headroom = RMNET_DATA_NEEDED_HEADROOM;
|
||||
random_ether_addr(dev->dev_addr);
|
||||
dev->watchdog_timeo = 1000;
|
||||
dev->tx_queue_len = RMNET_DATA_TX_QUEUE_LEN;
|
||||
|
||||
/* Raw IP mode */
|
||||
dev->header_ops = 0; /* No header */
|
||||
|
|
Loading…
Add table
Reference in a new issue