Skip to content

Commit

Permalink
rps: support IPIP encapsulation
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and davem330 committed Aug 24, 2011
1 parent 0e43182 commit ec5efe7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2608,6 +2608,8 @@ void __skb_get_rxhash(struct sk_buff *skb)
}
}
break;
case IPPROTO_IPIP:
goto again;
default:
break;
}
Expand Down

0 comments on commit ec5efe7

Please sign in to comment.