Subject: Re: [PATCH net-next-2.6] ipv4: more compliant RFC 3168 support

From: Hagen Paul Pfeifer <[email-masked]>
Date: Mon, 16 May 2011 23:33:37 +0200

* Eric Dumazet | 2011-05-15 18:01:50 [+0200]:

>Problem of this version is that common frames in the Internet (NOT_ECT
>or ECT_X or ECT_X) will take the longest path to come to "return 0;"
>
>a switch() version is fast because gcc emits a table based jump

Sure? Is the table access not an dCache miss? E.g.

4003dc: ff 24 fd 58 06 40 00  jmpq   *0x400658(,%rdi,8)

Not sure if jump table access is superior these days ...

Hagen