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)
commitb9f463d6c9849230043123a6335d59ac7fea4d5a
treef783000bbd897cea7d9bbebbfaa3552dc7b35a10
parent5fa12739a53d0780265ed9d44d9ec9ba5f9ad00a
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