diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2016-08-24 20:10:45 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-30 22:27:18 -0700 |
commit | 607fca9acfb62a9caf7bd46771ecbc4d8fec7388 (patch) | |
tree | bfa1f1a6174f542d98eba376a54cdd8f568f4f09 /drivers/net/veth.c | |
parent | 48d2ab609b6bbecb7698487c8579bc40de9d6dfa (diff) | |
download | op-kernel-dev-607fca9acfb62a9caf7bd46771ecbc4d8fec7388.zip op-kernel-dev-607fca9acfb62a9caf7bd46771ecbc4d8fec7388.tar.gz |
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 <buytenh@wantstofly.org>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/veth.c')
-rw-r--r-- | drivers/net/veth.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } /* |