summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2014-02-13 23:09:11 +0100
committerDavid S. Miller <davem@davemloft.net>2014-02-13 17:17:02 -0500
commitd206940319c41df4299db75ed56142177bb2e5f6 (patch)
tree2ce5a7d113c1d18c569b3bd4f2ffedb109056ece /include
parentf80889a5b79cae0b84465a90c21b1273a03b7973 (diff)
downloadlinux-stable-d206940319c41df4299db75ed56142177bb2e5f6.tar.gz
linux-stable-d206940319c41df4299db75ed56142177bb2e5f6.tar.bz2
linux-stable-d206940319c41df4299db75ed56142177bb2e5f6.zip
net: core: introduce netif_skb_dev_features
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 440a02ee6f92..21d4e6be8949 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -3068,7 +3068,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)
{