Commit f4b05d27 authored by Nikolay Aleksandrov's avatar Nikolay Aleksandrov Committed by David S. Miller

net: constify is_skb_forwardable's arguments

is_skb_forwardable is not supposed to change anything so constify its
arguments
Signed-off-by: default avatarNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 92aff96a
...@@ -3264,7 +3264,8 @@ struct sk_buff *dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev, ...@@ -3264,7 +3264,8 @@ struct sk_buff *dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
struct netdev_queue *txq, int *ret); struct netdev_queue *txq, int *ret);
int __dev_forward_skb(struct net_device *dev, struct sk_buff *skb); int __dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
int dev_forward_skb(struct net_device *dev, struct sk_buff *skb); int dev_forward_skb(struct net_device *dev, struct sk_buff *skb);
bool is_skb_forwardable(struct net_device *dev, struct sk_buff *skb); bool is_skb_forwardable(const struct net_device *dev,
const struct sk_buff *skb);
extern int netdev_budget; extern int netdev_budget;
......
...@@ -1741,7 +1741,7 @@ static inline void net_timestamp_set(struct sk_buff *skb) ...@@ -1741,7 +1741,7 @@ static inline void net_timestamp_set(struct sk_buff *skb)
__net_timestamp(SKB); \ __net_timestamp(SKB); \
} \ } \
bool is_skb_forwardable(struct net_device *dev, struct sk_buff *skb) bool is_skb_forwardable(const struct net_device *dev, const struct sk_buff *skb)
{ {
unsigned int len; unsigned int len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment