Patchwork [net-next] rps: support IPIP encapsulation

login
register
mail settings
Submitter Eric Dumazet
Date Aug. 24, 2011, 8:41 p.m.
Message ID <1314218479.2506.15.camel@edumazet-laptop>
Download mbox | patch
Permalink /patch/111422/
State Accepted
Delegated to: David Miller
Headers show

Comments

Eric Dumazet - Aug. 24, 2011, 8:41 p.m.
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 <eric.dumazet@gmail.com>
---
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
David Miller - Aug. 24, 2011, 11:14 p.m.
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Wed, 24 Aug 2011 22:41:19 +0200

> 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 <eric.dumazet@gmail.com>

Applied, thanks.
--
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

Patch

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;
 	}