]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: try harder to get packets from RX buffer
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>
Wed, 18 Oct 2017 15:40:23 +0000 (17:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 12:11:05 +0000 (13:11 +0100)
commit956fc20c512f0c4606318f54f7feb1878dc47d69
tree4b1259cbb2a4434eb9baf8cbf4b49681601cc807
parent67a093b1f4e6e9b5447941948299e8de75bad4f5
s390/qeth: try harder to get packets from RX buffer

Current code bails out when two subsequent buffer elements hold
insufficient data to contain a qeth_hdr packet descriptor.
This seems reasonable, but it would be legal for quirky hardware to
leave a few elements empty and then present packets in a subsequent
element. These packets would currently be dropped.

So make sure to check all buffer elements, until we hit the LAST_ENTRY
indication.

Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c