From: David Ahern Date: Thu, 25 Aug 2016 03:10:45 +0000 (-0700) Subject: net: veth: Set features for MPLS X-Git-Tag: v4.9-rc1~127^2~341^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=607fca9acfb62a9caf7bd46771ecbc4d8fec7388;p=platform%2Fkernel%2Flinux-exynos.git net: veth: Set features for MPLS veth does not really transmit packets only moves the skb from one netdev to another so gso and checksum is not really needed. Add the features to mpls_features to get the same benefit and performance with MPLS as without it. Reported-by: Lennert Buytenhek Signed-off-by: David Ahern Signed-off-by: David S. Miller --- diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 4bda502..fbc853e 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -340,6 +340,7 @@ static void veth_setup(struct net_device *dev) dev->hw_features = VETH_FEATURES; dev->hw_enc_features = VETH_FEATURES; + dev->mpls_features = NETIF_F_HW_CSUM | NETIF_F_GSO_SOFTWARE; } /*