• Diana Wang's avatar
    nfp: support TX VLAN ctag insert · d80702ff
    Diana Wang authored
    Add support for TX VLAN ctag insert
    which may be configured via ethtool.
    
    e.g.
         # ethtool -K $DEV tx-vlan-offload on
    
    The NIC supplies VLAN insert information as packet metadata.
    The fields of this VLAN metadata are gotten from sk_buff, including
    vlan_proto and vlan tag.
    
    Configuration control bit NFP_NET_CFG_CTRL_TXVLAN_V2 is to
    signal availability of ctag-insert features of the firmware.
    
    NFDK is used to communicate via PCIE to NFP-3800 based NICs
    while NFD3 is used for other NICs supported by the NFP driver.
    The metadata format on tx side of NFD3 is different from NFDK.
    This feature is not currently implemented for NFDK.
    Signed-off-by: default avatarDiana Wang <na.wang@corigine.com>
    Reviewed-by: default avatarLouis Peens <louis.peens@corigine.com>
    Signed-off-by: default avatarSimon Horman <simon.horman@corigine.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d80702ff
nfp_net_common.c 66.8 KB