]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: cache the ipv6 source after route lookup
authorVlad Yasevich <vladislav.yasevich@hp.com>
Tue, 26 Apr 2011 21:51:31 +0000 (21:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Apr 2011 20:14:04 +0000 (13:14 -0700)
commit8dd745df4b61fcdaced7c80f4f19926cf203d1de
tree269120740aa1afdb0dd792284341aaee93024f28
parent42f03327d0f5cf0d2560843def23b567e7f62c0a
sctp: cache the ipv6 source after route lookup

The ipv6 routing lookup does give us a source address,
but instead of filling it into the dst, it's stored in
the flowi.  We can use that instead of going through the
entire source address selection again.
Also the useless ->dst_saddr member of sctp_pf is removed.
And sctp_v6_dst_saddr() is removed, instead by introduce
sctp_v6_to_addr(), which can be reused to cleanup some dup
code.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/ipv6.c
net/sctp/protocol.c
net/sctp/socket.c
net/sctp/transport.c