• T
    net/mlx4_en: Refactor the XDP forwarding rings scheme · 67f8b1dc
    Tariq Toukan 提交于
    Separately manage the two types of TX rings: regular ones, and XDP.
    Upon an XDP set, do not borrow regular TX rings and convert them
    into XDP ones, but allocate new ones, unless we hit the max number
    of rings.
    Which means that in systems with smaller #cores we will not consume
    the current TX rings for XDP, while we are still in the num TX limit.
    
    XDP TX rings counters are not shown in ethtool statistics.
    Instead, XDP counters will be added to the respective RX rings
    in a downstream patch.
    
    This has no performance implications.
    Signed-off-by: NTariq Toukan <tariqt@mellanox.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    67f8b1dc
en_cq.c 5.5 KB