Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bill Sommerfeld and committed by
David S. Miller
a4d2113e 87caaaf2

+1
+1
drivers/net/ipvlan/ipvlan_main.c
··· 126 126 (phy_dev->state & IPVLAN_STATE_MASK); 127 127 dev->features = phy_dev->features & IPVLAN_FEATURES; 128 128 dev->features |= NETIF_F_LLTX | NETIF_F_VLAN_CHALLENGED; 129 + dev->hw_enc_features |= dev->features; 129 130 dev->gso_max_size = phy_dev->gso_max_size; 130 131 dev->gso_max_segs = phy_dev->gso_max_segs; 131 132 dev->hard_header_len = phy_dev->hard_header_len;