diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2017-05-17 13:30:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-18 10:19:30 -0400 |
commit | 0cd2950357e31a96be03b531b4b11fe1df812c9f (patch) | |
tree | b9587e64729dee6f52b5c07867c1acc3df805fe1 /drivers/net/wan/hdlc_raw_eth.c | |
parent | 64f5102dcb811b27d673eccc8cc0d76ce90981a4 (diff) | |
download | linux-stable-0cd2950357e31a96be03b531b4b11fe1df812c9f.tar.gz linux-stable-0cd2950357e31a96be03b531b4b11fe1df812c9f.tar.bz2 linux-stable-0cd2950357e31a96be03b531b4b11fe1df812c9f.zip |
net: make struct net_device::tx_queue_len unsigned int
4 billion packet queue is something unthinkable so use 32-bit value
for now.
Space savings on x86_64:
add/remove: 0/0 grow/shrink: 3/70 up/down: 16/-131 (-115)
function old new delta
change_tx_queue_len 94 108 +14
qdisc_create 1176 1177 +1
alloc_netdev_mqs 1124 1125 +1
xenvif_alloc 533 532 -1
x25_asy_setup 167 166 -1
...
tun_queue_resize 945 940 -5
pfifo_fast_enqueue 167 162 -5
qfq_init_qdisc 168 158 -10
tap_queue_resize 810 799 -11
transmit 719 698 -21
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/hdlc_raw_eth.c')
-rw-r--r-- | drivers/net/wan/hdlc_raw_eth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wan/hdlc_raw_eth.c b/drivers/net/wan/hdlc_raw_eth.c index 2f11836078ab..8bd3ed905813 100644 --- a/drivers/net/wan/hdlc_raw_eth.c +++ b/drivers/net/wan/hdlc_raw_eth.c @@ -57,7 +57,8 @@ static int raw_eth_ioctl(struct net_device *dev, struct ifreq *ifr) const size_t size = sizeof(raw_hdlc_proto); raw_hdlc_proto new_settings; hdlc_device *hdlc = dev_to_hdlc(dev); - int result, old_qlen; + unsigned int old_qlen; + int result; switch (ifr->ifr_settings.type) { case IF_GET_PROTO: |