]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Optimize flow initialization in fib_validate_source().
authorDavid S. Miller <davem@davemloft.net>
Thu, 10 Mar 2011 04:57:50 +0000 (20:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Mar 2011 04:57:50 +0000 (20:57 -0800)
commit9929bcdd3e616f694bc5d3b14c5ab88645b749c1
tree3a4030df19e212619ce4437c2100a23a35e759dd
parent7ccda4262bba8af08b81220be14cb8d28f3e9974
ipv4: Optimize flow initialization in fib_validate_source().

Like in commit c9eacede11754a4c035b2fe976ff6ae285701407
("ipv4: Optimize flow initialization in output route lookup."
we can optimize the on-stack flow setup to only initialize
the members which are actually used.

Otherwise we bzero the entire structure, then initialize
explicitly the first half of it.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_frontend.c