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)
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>

No differences found