Prev: [RFC][PATCH v4 10/18] Use callback to deal with skb_release_data() specially.
Next: [RFC][PATCH v4 05/18] Add a function to indicate if device use external buffer.
From: xiaohui.xin on 25 Apr 2010 05:30 From: Xin Xiaohui <xiaohui.xin(a)intel.com> Signed-off-by: Xin Xiaohui <xiaohui.xin(a)intel.com> Signed-off-by: Zhao Yu <yzhao81(a)gmail.com> Reviewed-by: Jeff Dike <jdike(a)linux.intel.com> --- net/core/dev.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index 3e3ad23..f275c44 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2780,6 +2780,10 @@ enum gro_result dev_gro_receive(struct napi_struct *napi, struct sk_buff *skb) if (skb_is_gso(skb) || skb_has_frags(skb)) goto normal; + /* currently GRO is not supported by mediate passthru */ + if (dev_is_mpassthru(skb->dev)) + goto normal; + rcu_read_lock(); list_for_each_entry_rcu(ptype, head, list) { if (ptype->type != type || ptype->dev || !ptype->gro_receive) -- 1.5.4.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |