Skip to contentSkip to conversation

net: allow handlers to be processed for orig_dev

PATCH Applied Jiri Pirko 3 participants 4 messages Mar 1, 2011 – Mar 7, 2011

Subsystems (2)
lore
Share & tools
lore

Jiri Pirko

author
#0 lore raw

This was there before, I forgot about this. Allows deliveries to ptype_base handlers registered for orig_dev. I presume this is still desired.

---
 net/core/dev.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
net/core/dev.c +2 -1
index 30440e7..9f66de9 100644
@@ -3208,7 +3208,8 @@ ncls:
 	list_for_each_entry_rcu(ptype,
 			&ptype_base[ntohs(type) & PTYPE_HASH_MASK], list) {
 		if (ptype->type == type &&
-		    (ptype->dev == null_or_dev || ptype->dev == skb->dev)) {
+		    (ptype->dev == null_or_dev || ptype->dev == skb->dev ||
+		     ptype->dev == orig_dev)) {
 			if (pt_prev)
 				ret = deliver_skb(skb, pt_prev, orig_dev);
 			pt_prev = ptype;
Signature · 1 line
1.7.3.4
author
#1 lore raw

ou, forgot [PATCH net-next-2.6] - sorry

Quoted 26 lines · Tue, Mar 01, 2011 at 07:26:31AM CET, [email protected] wrote:

This was there before, I forgot about this. Allows deliveries to ptype_base handlers registered for orig_dev. I presume this is still desired.

---
net/core/dev.c | 3 ++-

1 files changed, 2 insertions(+), 1 deletions(-)
net/core/dev.c +2 -1
index 30440e7..9f66de9 100644
@@ -3208,7 +3208,8 @@ ncls:
 	list_for_each_entry_rcu(ptype,
 			&ptype_base[ntohs(type) & PTYPE_HASH_MASK], list) {
 		if (ptype->type == type &&
-		    (ptype->dev == null_or_dev || ptype->dev == skb->dev)) {
+		    (ptype->dev == null_or_dev || ptype->dev == skb->dev ||
+		     ptype->dev == orig_dev)) {
 			if (pt_prev)
 				ret = deliver_skb(skb, pt_prev, orig_dev);
 			pt_prev = ptype;
Signature · 1 line
1.7.3.4
#2 lore raw
In reply to Jiri Pirko
Quoted 3 lines · Jiri Pirko

This was there before, I forgot about this. Allows deliveries to ptype_base handlers registered for orig_dev. I presume this is still desired.

Yes, it is. Sorry for missing it in my review.

Quoted 1 line
Quoted 18 lines
---
  net/core/dev.c |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
net/core/dev.c +2 -1
index 30440e7..9f66de9 100644
@@ -3208,7 +3208,8 @@ ncls:
  	list_for_each_entry_rcu(ptype,
  			&ptype_base[ntohs(type)&  PTYPE_HASH_MASK], list) {
  		if (ptype->type == type&&
-		    (ptype->dev == null_or_dev || ptype->dev == skb->dev)) {
+		    (ptype->dev == null_or_dev || ptype->dev == skb->dev ||
+		     ptype->dev == orig_dev)) {
  			if (pt_prev)
  				ret = deliver_skb(skb, pt_prev, orig_dev);
  			pt_prev = ptype;
maintainer Applied
#3 lore raw

From: Nicolas de Pesloüan <[email protected]>
Date: Tue, 01 Mar 2011 09:24:19 +0100

Quoted 10 lines · Jiri Pirko
Quoted 3 lines

This was there before, I forgot about this. Allows deliveries to ptype_base handlers registered for orig_dev. I presume this is still desired.

Yes, it is. Sorry for missing it in my review.

Quoted 1 line

Applied, thanks.