diff options
-rw-r--r-- | include/linux/netdevice.h | 3 | ||||
-rw-r--r-- | net/core/dev.c | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 08c4ab37189f..967bb4c8caf1 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -3657,6 +3657,9 @@ void netdev_change_features(struct net_device *dev); | |||
3657 | void netif_stacked_transfer_operstate(const struct net_device *rootdev, | 3657 | void netif_stacked_transfer_operstate(const struct net_device *rootdev, |
3658 | struct net_device *dev); | 3658 | struct net_device *dev); |
3659 | 3659 | ||
3660 | netdev_features_t passthru_features_check(struct sk_buff *skb, | ||
3661 | struct net_device *dev, | ||
3662 | netdev_features_t features); | ||
3660 | netdev_features_t netif_skb_features(struct sk_buff *skb); | 3663 | netdev_features_t netif_skb_features(struct sk_buff *skb); |
3661 | 3664 | ||
3662 | static inline bool net_gso_ok(netdev_features_t features, int gso_type) | 3665 | static inline bool net_gso_ok(netdev_features_t features, int gso_type) |
diff --git a/net/core/dev.c b/net/core/dev.c index cb46badbef5a..3a06003ecafd 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -2562,6 +2562,14 @@ static netdev_features_t harmonize_features(struct sk_buff *skb, | |||
2562 | return features; | 2562 | return features; |
2563 | } | 2563 | } |
2564 | 2564 | ||
2565 | netdev_features_t passthru_features_check(struct sk_buff *skb, | ||
2566 | struct net_device *dev, | ||
2567 | netdev_features_t features) | ||
2568 | { | ||
2569 | return features; | ||
2570 | } | ||
2571 | EXPORT_SYMBOL(passthru_features_check); | ||
2572 | |||
2565 | static netdev_features_t dflt_features_check(const struct sk_buff *skb, | 2573 | static netdev_features_t dflt_features_check(const struct sk_buff *skb, |
2566 | struct net_device *dev, | 2574 | struct net_device *dev, |
2567 | netdev_features_t features) | 2575 | netdev_features_t features) |