• S
    sfc: add ndo_set_vf_vlan() function for EF10 · 2d432f20
    Shradha Shah 提交于
    The max vlan tags that can be offloaded is 2, including any upstream VLAN
    aggregator. Currently there is no way for the net driver to know whether
    the upstream vswitch (if any) is using vlan tags, so there is no way to
    know how many tags we can request.
    Along with the implementation for the ndo_set_vf_vlan callback, this patch
    also adds 2 VLAN tags for the driver created VEB switch if possible, that
    way it is possible to offload as many tags as are allowed.
    Signed-off-by: NShradha Shah <sshah@solarflare.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    2d432f20
ef10_sriov.c 16.6 KB