History

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.

Jiri Pirko committed 11 years ago

Commit fbcb2171 parent 3aa10da1 file · +3 −2Browse files

Unified · Split

net/core/dev.c+3−2
@@ -1740,7 +1740,8 @@ static inline int deliver_skb(struct sk_buff *skb, · 1739 unmodified lines
17401740
17411741 static inline void deliver_ptype_list_skb(struct sk_buff *skb,
17421742 struct packet_type **pt,
1743− struct net_device *dev, __be16 type,
1743+ struct net_device *orig_dev,
1744+ __be16 type,
17441745 struct list_head *ptype_list)
17451746 {
17461747 struct packet_type *ptype, *pt_prev = *pt;
@@ -1749,7 +1750,7 @@ static inline void deliver_ptype_list_skb(struct sk_buff *skb, · 2 unmodified lines
17491750 if (ptype->type != type)
17501751 continue;
17511752 if (pt_prev)
1752− deliver_skb(skb, pt_prev, dev);
1753+ deliver_skb(skb, pt_prev, orig_dev);
17531754 pt_prev = ptype;
17541755 }
17551756 *pt = pt_prev;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t