diff options
author | Florian Westphal <fw@strlen.de> | 2014-02-22 09:28:30 (GMT) |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-02-26 09:22:53 (GMT) |
commit | 0777d823861813723375c0e6123acc61d4ff8d56 (patch) | |
tree | d89fd4b31fb513d0ba36a89ae11eab12df35ed67 /include | |
parent | 449c57330908bd59b524091c0b7d12d5ab39197d (diff) | |
download | linux-fsl-qoriq-0777d823861813723375c0e6123acc61d4ff8d56.tar.xz |
net: core: introduce netif_skb_dev_features
commit d206940319c41df4299db75ed56142177bb2e5f6 upstream.
Will be used by upcoming ipv4 forward path change that needs to
determine feature mask using skb->dst->dev instead of skb->dev.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 21eae43..9f2a0cb 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2917,7 +2917,12 @@ void netdev_change_features(struct net_device *dev); void netif_stacked_transfer_operstate(const struct net_device *rootdev, struct net_device *dev); -netdev_features_t netif_skb_features(struct sk_buff *skb); +netdev_features_t netif_skb_dev_features(struct sk_buff *skb, + const struct net_device *dev); +static inline netdev_features_t netif_skb_features(struct sk_buff *skb) +{ + return netif_skb_dev_features(skb, skb->dev); +} static inline bool net_gso_ok(netdev_features_t features, int gso_type) { |