net: allow handlers to be processed for orig_dev
Subsystems (2)
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
@@ -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
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_basehandlers registered fororig_dev. I presume this is still desired.Signed-off-by Jiri Pirko <[email protected]>---
net/core/dev.c| 3 ++-1 files changed, 2 insertions(+), 1 deletions(-)net/core/dev.c +2
-1@@ -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
Nicolas de Pesloüan
Reviewed-byQuoted 3 lines · Jiri Pirko
This was there before, I forgot about this. Allows deliveries to
ptype_basehandlers registered fororig_dev. I presume this is still desired.
Yes, it is. Sorry for missing it in my review.
Quoted 1 line
Signed-off-by Jiri Pirko<[email protected]>
Quoted 18 lines
--- net/core/dev.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)net/core/dev.c +2
-1@@ -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;
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_basehandlers registered fororig_dev. I presume this is still desired.Yes, it is. Sorry for missing it in my review.
Quoted 1 line
Signed-off-by Jiri Pirko<[email protected]>Reviewed-by Nicolas de Pesloüan <[email protected]>
Applied, thanks.