From patchwork Wed Aug 24 20:41:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Dumazet X-Patchwork-Id: 111422 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B79CBB6F18 for ; Thu, 25 Aug 2011 06:41:33 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753224Ab1HXUl0 (ORCPT ); Wed, 24 Aug 2011 16:41:26 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:36848 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752756Ab1HXUlY (ORCPT ); Wed, 24 Aug 2011 16:41:24 -0400 Received: by wyg24 with SMTP id 24so1148782wyg.19 for ; Wed, 24 Aug 2011 13:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=v2C/7Eym34Fh2Tc9IH9GNMyKgBqxxR2D/MYZnhFbAHc=; b=kVSUYT0O0qRUjr9ut+z5jPCEgE3sGwMd1gLHOdTbrnxiu2LXM6ga2jrwc+pYTGCi6N 809dCwOJIKrcYGELqx9X49+f0d4TAHorEH4xYgwfJYRs43vU/0VuT4lGNGscuzdQmkFP xIXTrHS2/UjFE5o5emw3esXMCR0G2BQdPfJVs= Received: by 10.216.14.41 with SMTP id c41mr4738003wec.108.1314218483117; Wed, 24 Aug 2011 13:41:23 -0700 (PDT) Received: from [10.150.51.213] (gw0.net.jmsp.net [212.23.165.14]) by mx.google.com with ESMTPS id s1sm943976wec.44.2011.08.24.13.41.21 (version=SSLv3 cipher=OTHER); Wed, 24 Aug 2011 13:41:22 -0700 (PDT) Subject: [PATCH net-next] rps: support IPIP encapsulation From: Eric Dumazet To: David Miller Cc: netdev , Tom Herbert Date: Wed, 24 Aug 2011 22:41:19 +0200 Message-ID: <1314218479.2506.15.camel@edumazet-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Skip IPIP header to get proper layer-4 information. Like GRE tunnels, this only works if rxhash is not already provided by the device itself (ethtool -K ethX rxhash off), to allow kernel compute a software rxhash. Signed-off-by: Eric Dumazet --- A piece of cake ;) net/core/dev.c | 2 ++ 1 file changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/core/dev.c b/net/core/dev.c index a4306f7..b668a3d 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2608,6 +2608,8 @@ again: } } break; + case IPPROTO_IPIP: + goto again; default: break; }