net: Use sk_mark for routing lookup in more places
authorAtis Elsts <atis@mikrotik.com>
Thu, 1 Oct 2009 22:16:49 +0000 (15:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Oct 2009 22:16:49 +0000 (15:16 -0700)
commit914a9ab386a288d0f22252fc268ecbc048cdcbd5
tree5bc164381e7ff1b55990288b67ae014b5ed668ea
parent66466797c7e2406579724e42eb9cfe05d53a882b
net: Use sk_mark for routing lookup in more places

This patch against v2.6.31 adds support for route lookup using sk_mark in some
more places. The benefits from this patch are the following.
First, SO_MARK option now has effect on UDP sockets too.
Second, ip_queue_xmit() and inet_sk_rebuild_header() could fail to do routing
lookup correctly if TCP sockets with SO_MARK were used.

Signed-off-by: Atis Elsts <atis@mikrotik.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
net/ipv4/af_inet.c
net/ipv4/ip_output.c
net/ipv4/udp.c