• Julian Wiedmann's avatar
    s390/qeth: simplify RX buffer tracking · ed13615d
    Julian Wiedmann authored
    Since RX buffers may contain multiple packets, qeth's NAPI poll code can
    exhaust its budget in the middle of an RX buffer. Thus we keep track of
    our current position within the active RX buffer, so we can resume
    processing here in the next NAPI poll period.
    
    Clean up that code by tracking the index of the active buffer element,
    instead of a pointer to it.
    Also simplify the code that advances to the next RX buffer when the
    current buffer has been fully processed.
    
    v2: - remove QDIO_ELEMENT_NO() macro (davem)
    Signed-off-by: default avatarJulian Wiedmann <jwi@linux.ibm.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ed13615d
qeth_core_main.c 179 KB