summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorMatteo Croce <mcroce@redhat.com>2019-10-29 14:50:51 +0100
committerDavid S. Miller <davem@davemloft.net>2019-10-31 01:21:35 +0100
commit3b336d6f4ec690b0082bcffe55bac22f234a41ff (patch)
treebedc154ea4528ee99b1376f57007747cbec05190 /include/net
parentflow_dissector: add meaningful comments (diff)
downloadlinux-3b336d6f4ec690b0082bcffe55bac22f234a41ff.tar.xz
linux-3b336d6f4ec690b0082bcffe55bac22f234a41ff.zip
flow_dissector: skip the ICMP dissector for non ICMP packets
FLOW_DISSECTOR_KEY_ICMP is checked for every packet, not only ICMP ones. Even if the test overhead is probably negligible, move the ICMP dissector code under the big 'switch(ip_proto)' so it gets called only for ICMP packets. Signed-off-by: Matteo Croce <mcroce@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions