Bug/typo in af_netlink.c ?

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

 



    Hi !

    There is something strange in net/netlink/af_netlink.c with the
following code  :

if (skb_queue_len(&sk->receive_queue) <= sk->rcvbuf/2) {
	if (skb_queue_len(&sk->receive_queue) == 0)
		clear_bit(0, &sk->protinfo.af_netlink->state);
	if (!test_bit(0, &sk->protinfo.af_netlink->state))
		wake_up_interruptible(&sk->protinfo.af_netlink->wait);
}

    The receive_queue is a skb count, while rcvbuf is a byte count,
am I wrong ? If I am right, I guess this test is useless (queue length
is usually < 32K).

-- 
E. Chaput

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux