ipv4: add __ip_queue_xmit() that supports tos param
authorXin Long <lucien.xin@gmail.com>
Mon, 2 Jul 2018 10:21:11 +0000 (18:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2018 02:36:54 +0000 (11:36 +0900)
commit69b9e1e07d98b57b972df3c44647ca8795284d39
tree726deadc9bd959da36696768e0462243f9579300
parent05bd97fc559df4d26e33b0714b5327de8f610971
ipv4: add __ip_queue_xmit() that supports tos param

This patch introduces __ip_queue_xmit(), through which the callers
can pass tos param into it without having to set inet->tos. For
ipv6, ip6_xmit() already allows passing tclass parameter.

It's needed when some transport protocol doesn't use inet->tos,
like sctp's per transport dscp, which will be added in next patch.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/ip_output.c