lkml.org 
[lkml]   [2019]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 36/43] team: Always enable vlan tx offload
    Date
    From: YueHaibing <yuehaibing@huawei.com>

    [ Upstream commit ee4297420d56a0033a8593e80b33fcc93fda8509 ]

    We should rather have vlan_tci filled all the way down
    to the transmitting netdevice and let it do the hw/sw
    vlan implementation.

    Suggested-by: Jiri Pirko <jiri@resnulli.us>
    Signed-off-by: YueHaibing <yuehaibing@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/team/team.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/net/team/team.c
    +++ b/drivers/net/team/team.c
    @@ -2131,12 +2131,12 @@ static void team_setup(struct net_device
    dev->features |= NETIF_F_NETNS_LOCAL;

    dev->hw_features = TEAM_VLAN_FEATURES |
    - NETIF_F_HW_VLAN_CTAG_TX |
    NETIF_F_HW_VLAN_CTAG_RX |
    NETIF_F_HW_VLAN_CTAG_FILTER;

    dev->hw_features |= NETIF_F_GSO_ENCAP_ALL;
    dev->features |= dev->hw_features;
    + dev->features |= NETIF_F_HW_VLAN_CTAG_TX;
    }

    static int team_newlink(struct net *src_net, struct net_device *dev,

    \
     
     \ /
      Last update: 2019-07-02 10:10    [W:4.139 / U:0.640 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site