Skip to content
Commit 3797d3e8 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: flow_dissector: small optimizations in IPv4 dissect



By moving code around, we avoid :

1) A reload of iph->ihl (bit field, so needs a mask)

2) A conditional test (replaced by a conditional mov on x86)
   Fast path loads iph->protocol anyway.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cdc4ead0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment