net: skb_condense() can also deal with empty skbs
authorEric Dumazet <edumazet@google.com>
Fri, 9 Dec 2016 16:02:05 +0000 (08:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Dec 2016 04:06:10 +0000 (23:06 -0500)
commit3174fed9820edc95cff74ad0934c3240c7fb5115
tree57b6f56d50fe1329c2f93b91921ca59940107def
parent5ac9efbe1c825d624eb557e633683c07ee03465b
net: skb_condense() can also deal with empty skbs

It seems attackers can also send UDP packets with no payload at all.

skb_condense() can still be a win in this case.

It will be possible to replace the custom code in tcp_add_backlog()
to get full benefit from skb_condense()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c