summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorDan Collins <dan@dcollins.co.nz>2014-12-19 06:49:25 +0300
committerDavid S. Miller <davem@davemloft.net>2014-12-22 23:41:15 +0300
commitda413eec729dae5dcb150e2eb34c5e7e5e4e1b49 (patch)
tree44b4fe9d8c44e43f4c96d041fdb230f4ddfd1c08 /drivers/net
parent02d6a746c3f0cdd6f8aad0afd0b32d4646d6525e (diff)
downloadlinux-da413eec729dae5dcb150e2eb34c5e7e5e4e1b49.tar.xz
packet: Fixed TPACKET V3 to signal poll when block is closed rather than every packet
Make TPACKET_V3 signal poll when block is closed rather than for every packet. Side effect is that poll will be signaled when block retire timer expires which didn't previously happen. Issue was visible when sending packets at a very low frequency such that all blocks are retired before packets are received by TPACKET_V3. This caused avoidable packet loss. The fix ensures that the signal is sent when blocks are closed which covers the normal path where the block is filled as well as the path where the timer expires. The case where a block is filled without moving to the next block (ie. all blocks are full) will still cause poll to be signaled. Signed-off-by: Dan Collins <dan@dcollins.co.nz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions