netdev_max_backlog

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

The global variable netdev_max_backlog describes the
maximum number of incoming packets that can be queued
up for upper-layer processing.There is also a input
queue for each cpu.

What is the best way to know if the input queue or the
netdev_max_backlog is full, in a driver interrupt
routine?  

Will this work:

queue = &softnet_data[smp_processor_id()];

q_avail = ((queue->input_pkt_queue.qlen <=
netdev_max_backlog) && (!queue->throttle)) ? 1 : 0;	

The code is quite same as what is being done in
netif_rx().

Thanks,
Manoj


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux