net: introduce skb_flow_dissect()
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 28 Nov 2011 05:22:18 +0000 (05:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Nov 2011 00:09:07 +0000 (19:09 -0500)
commit0744dd00c1b1be99a25b62b1b48df440e82e57e0
tree94bff02f61657c4b02709f472dcb56f9dc927a18
parentde0396f4003a24a57875b35f2996fdaa47bc1d0d
net: introduce skb_flow_dissect()

We use at least two flow dissectors in network stack, with known
limitations and code duplication.

Introduce skb_flow_dissect() to factorize this, highly inspired from
existing dissector from __skb_get_rxhash()

Note : We extensively use skb_header_pointer(), this permits us to not
touch skb at all.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_keys.h [new file with mode: 0644]
net/core/Makefile
net/core/flow_dissector.c [new file with mode: 0644]