|
@@ -68,7 +68,7 @@ static struct sk_buff *gre_gso_segment(struct sk_buff *skb,
|
|
skb->mac_len = skb_inner_network_offset(skb);
|
|
skb->mac_len = skb_inner_network_offset(skb);
|
|
|
|
|
|
/* segment inner packet. */
|
|
/* segment inner packet. */
|
|
- enc_features = skb->dev->hw_enc_features & netif_skb_features(skb);
|
|
|
|
|
|
+ enc_features = skb->dev->hw_enc_features & features;
|
|
segs = skb_mac_gso_segment(skb, enc_features);
|
|
segs = skb_mac_gso_segment(skb, enc_features);
|
|
if (IS_ERR_OR_NULL(segs)) {
|
|
if (IS_ERR_OR_NULL(segs)) {
|
|
skb_gso_error_unwind(skb, protocol, ghl, mac_offset, mac_len);
|
|
skb_gso_error_unwind(skb, protocol, ghl, mac_offset, mac_len);
|