flow_dissector: Add flag to stop parsing at L3
authorTom Herbert <tom@herbertland.com>
Tue, 1 Sep 2015 16:24:30 +0000 (09:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2015 22:06:23 +0000 (15:06 -0700)
commit8306b688f1a6621b9efe3b0d827e26750528b12a
tree81725f39b3e3905ec73e817ccdeeda187a298325
parentb840f28b908da0239c8c5d9c8cae362ad21cda97
flow_dissector: Add flag to stop parsing at L3

Add an input flag to flow dissector on rather dissection should be
stopped when an L3 packet is encountered. This would be useful if a
caller just wanted to get IP addresses of the outermost header (e.g.
to do an L3 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