• Jakub Kicinski's avatar
    nfp: reorganize initial filling of RX rings · 1934680f
    Jakub Kicinski authored
    Separate allocation of buffers from giving them to FW,
    thanks to this it will be possible to move allocation
    earlier on .ndo_open() path and reuse buffers during
    runtime reconfiguration.
    
    Similar to TX side clean up the spill of functionality
    from flush to freeing the ring.  Unlike on TX side,
    RX ring reset does not free buffers from the ring.
    Ring reset means only that FW pointers are zeroed and
    buffers on the ring must be placed in [0, cnt - 1)
    positions.
    Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1934680f
nfp_net_common.c 65.9 KB