diff options
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 40be481268de..70bb609c283d 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -118,6 +118,7 @@ | |||
118 | #include <linux/if_vlan.h> | 118 | #include <linux/if_vlan.h> |
119 | #include <linux/ip.h> | 119 | #include <linux/ip.h> |
120 | #include <net/ip.h> | 120 | #include <net/ip.h> |
121 | #include <net/mpls.h> | ||
121 | #include <linux/ipv6.h> | 122 | #include <linux/ipv6.h> |
122 | #include <linux/in.h> | 123 | #include <linux/in.h> |
123 | #include <linux/jhash.h> | 124 | #include <linux/jhash.h> |
@@ -2530,7 +2531,7 @@ static netdev_features_t net_mpls_features(struct sk_buff *skb, | |||
2530 | netdev_features_t features, | 2531 | netdev_features_t features, |
2531 | __be16 type) | 2532 | __be16 type) |
2532 | { | 2533 | { |
2533 | if (type == htons(ETH_P_MPLS_UC) || type == htons(ETH_P_MPLS_MC)) | 2534 | if (eth_p_mpls(type)) |
2534 | features &= skb->dev->mpls_features; | 2535 | features &= skb->dev->mpls_features; |
2535 | 2536 | ||
2536 | return features; | 2537 | return features; |