diff options
author | Bill Sommerfeld <wsommerfeld@google.com> | 2019-08-15 02:10:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-17 00:58:34 +0200 |
commit | a4d2113e46c1d2ded1bfed9a19fe17b5ab2d584c (patch) | |
tree | 50d954f19c9b8318ed68dae5e672d6ee99994cf3 /drivers/net/ipvlan | |
parent | selftests: Fix get_ifidx and callers in nettest.c (diff) | |
download | linux-a4d2113e46c1d2ded1bfed9a19fe17b5ab2d584c.tar.xz linux-a4d2113e46c1d2ded1bfed9a19fe17b5ab2d584c.zip |
ipvlan: set hw_enc_features like macvlan
Allow encapsulated packets sent to tunnels layered over ipvlan to use
offloads rather than forcing SW fallbacks.
Since commit f21e5077010acda73a60 ("macvlan: add offload features for
encapsulation"), macvlan has set dev->hw_enc_features to include
everything in dev->features; do likewise in ipvlan.
Signed-off-by: Bill Sommerfeld <wsommerfeld@google.com>
Acked-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipvlan')
-rw-r--r-- | drivers/net/ipvlan/ipvlan_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c index 1c96bed5a7c4..887bbba4631e 100644 --- a/drivers/net/ipvlan/ipvlan_main.c +++ b/drivers/net/ipvlan/ipvlan_main.c @@ -126,6 +126,7 @@ static int ipvlan_init(struct net_device *dev) (phy_dev->state & IPVLAN_STATE_MASK); dev->features = phy_dev->features & IPVLAN_FEATURES; dev->features |= NETIF_F_LLTX | NETIF_F_VLAN_CHALLENGED; + dev->hw_enc_features |= dev->features; dev->gso_max_size = phy_dev->gso_max_size; dev->gso_max_segs = phy_dev->gso_max_segs; dev->hard_header_len = phy_dev->hard_header_len; |