net: rename dev to orig_dev in deliver_ptype_list_skb

Unlike other places, this function uses name "dev" for what should be
"orig_dev", which might be a bit confusing. So fix this.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jiri Pirko 2015-03-30 16:56:01 +02:00 committed by David S. Miller
parent 3aa10dad5b
commit fbcb217059
1 changed files with 3 additions and 2 deletions

View File

@ -1740,7 +1740,8 @@ static inline int deliver_skb(struct sk_buff *skb,
static inline void deliver_ptype_list_skb(struct sk_buff *skb, static inline void deliver_ptype_list_skb(struct sk_buff *skb,
struct packet_type **pt, struct packet_type **pt,
struct net_device *dev, __be16 type, struct net_device *orig_dev,
__be16 type,
struct list_head *ptype_list) struct list_head *ptype_list)
{ {
struct packet_type *ptype, *pt_prev = *pt; struct packet_type *ptype, *pt_prev = *pt;
@ -1749,7 +1750,7 @@ static inline void deliver_ptype_list_skb(struct sk_buff *skb,
if (ptype->type != type) if (ptype->type != type)
continue; continue;
if (pt_prev) if (pt_prev)
deliver_skb(skb, pt_prev, dev); deliver_skb(skb, pt_prev, orig_dev);
pt_prev = ptype; pt_prev = ptype;
} }
*pt = pt_prev; *pt = pt_prev;