• Sunil Goutham's avatar
    net: thunderx: Add basic XDP support · 05c773f5
    Sunil Goutham authored
    Adds basic XDP support i.e attaching a BPF program to an
    interface. Also takes care of allocating separate Tx queues
    for XDP path and for network stack packet transmission.
    
    This patch doesn't support handling of any of the XDP actions,
    all are treated as XDP_PASS i.e packets will be handed over to
    the network stack.
    
    Changes also involve allocating one receive buffer per page in XDP
    mode and multiple in normal mode i.e when no BPF program is attached.
    Signed-off-by: default avatarSunil Goutham <sgoutham@cavium.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    05c773f5
nicvf_ethtool.c 22.4 KB