]> git.baikalelectronics.ru Git - kernel.git/commit
flow_dissector: Add flag to stop parsing when an IPv6 flow label is seen
authorTom Herbert <tom@herbertland.com>
Tue, 1 Sep 2015 16:24:31 +0000 (09:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2015 22:06:23 +0000 (15:06 -0700)
commit1c5e51da5e563636c456ddb809f1c5082c0879f0
tree42d039b2efbd26699c9e2033d54a47d8e831eede
parentca8ef4fba23b3d4f60f3936263c9b5b1e5437c30
flow_dissector: Add flag to stop parsing when an IPv6 flow label is seen

Add an input flag to flow dissector on rather dissection should be
stopped when a flow label is encountered. Presumably, the flow label
is derived from a sufficient hash of an inner transport packet so
further dissection is not needed (that is ports are not included in
the flow hash). Using the flow label instead of ports has the additional
benefit that packet fragments should hash to same value as non-fragments
for a flow (assuming that the same flow label is used).

We set this flag by default in for skb_get_hash.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_dissector.h
net/core/flow_dissector.c