]> git.baikalelectronics.ru Git - kernel.git/commit
net: don't bother calling list RX functions on empty lists
authorEdward Cree <ecree@solarflare.com>
Mon, 2 Jul 2018 15:14:44 +0000 (16:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2018 05:06:20 +0000 (14:06 +0900)
commitecc390039c195ae1b6da4a0eeaa56338465e9283
treef783000bbd897cea7d9bbebbfaa3552dc7b35a10
parent2b6d77cd1c42a95e06ef8823524f0cb345403ded
net: don't bother calling list RX functions on empty lists

Generally the check should be very cheap, as the sk_buff_head is in cache.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c