commit | 3797d3e8462efdaadb64164ca540626b55fe8336 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Thu Nov 07 08:37:28 2013 -0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Nov 08 13:30:02 2013 -0500 |
tree | 34f7b159f88933738c73e3c8f39d38b1715dd103 | |
parent | cdc4ead09d3ee0ce48054b81ac31bc8179182dae [diff] |
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: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>