Re: [PATCH v2 net] udp: fix poll() issue with zero sized packets

2016-08-23 Thread David Miller
From: Eric Dumazet Date: Tue, 23 Aug 2016 13:59:33 -0700 > From: Eric Dumazet > > Laura tracked poll() [and friends] regression caused by commit > e6afc8ace6dd ("udp: remove headers from UDP packets before queueing") > > udp_poll() needs to know if there is a valid packet in receive queue, > e

[PATCH v2 net] udp: fix poll() issue with zero sized packets

2016-08-23 Thread Eric Dumazet
From: Eric Dumazet Laura tracked poll() [and friends] regression caused by commit e6afc8ace6dd ("udp: remove headers from UDP packets before queueing") udp_poll() needs to know if there is a valid packet in receive queue, even if its payload length is 0. Change first_packet_length() to return a