• Íñigo Huguet's avatar
    sfc: fallback for lack of xdp tx queues · 41544618
    Íñigo Huguet authored
    If there are not enough resources to allocate one TX queue per core for
    XDP TX it was completely disabled.
    
    This patch implements a fallback solution for sharing the available
    queues using __netif_tx_lock for synchronization. In the normal case that
    there is one TX queue per CPU, no locking is done, as it was before.
    
    With this fallback solution, XDP TX will work in much more cases that
    were failing, specially in machines with many CPUs. It's hard for XDP
    users to know what features are supported across different NICs and
    configurations, so they will benefit on having wider support.
    Signed-off-by: default avatarÍñigo Huguet <ihuguet@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    41544618
efx_channels.c 33.4 KB