]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add helper flowi4_init_output().
authorDavid S. Miller <davem@davemloft.net>
Thu, 31 Mar 2011 11:52:14 +0000 (04:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Mar 2011 11:52:14 +0000 (04:52 -0700)
commita0a2926c93e3a3916a83ea1f25921ca32a9203dd
treee4dad24604077a6ca1cd1542e3d3de8b6365cedc
parent21c6491863185858960a56a6297b208c25705abd
net: Add helper flowi4_init_output().

On-stack initialization via assignment of flow structures are
expensive because GCC emits a memset() to clear the entire
structure out no matter what.

Add a helper for ipv4 output flow key setup which we can use to avoid
the memset.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow.h