• Mintz, Yuval's avatar
    qede: Postpone reallocation until NAPI end · e3eef7ee
    Mintz, Yuval authored
    During Rx flow driver allocates a replacement buffer each time
    it consumes an Rx buffer. Failing to do so, it would consume the
    currently processed buffer and re-post it on the ring.
    As a result, the Rx ring is always completely full [from driver POV].
    
    We now allow the Rx ring to shorten by doing the re-allocations
    at the end of the NAPI run. The only limitation is that we still want to
    make sure each time we reallocate that we'd still have sufficient
    elements in the Rx ring to guarantee that FW would be able to post
    additional data and trigger an interrupt.
    Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@cavium.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    e3eef7ee
qede_fp.c 47.1 KB