]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: allow not to count pkts on tstats by setting skb's dev to NULL
authorXin Long <lucien.xin@gmail.com>
Mon, 17 Jun 2019 13:34:13 +0000 (21:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2019 00:48:45 +0000 (20:48 -0400)
commit1234a85d81a9070adf3aa2d1709e3cf2fa2f33b4
treeeb435c9ef15055443527f5c5215bcc17220dea28
parente7bce61314dbd711f0f05e4e3db2735dec47c85f
ip_tunnel: allow not to count pkts on tstats by setting skb's dev to NULL

iptunnel_xmit() works as a common function, also used by a udp tunnel
which doesn't have to have a tunnel device, like how TIPC works with
udp media.

In these cases, we should allow not to count pkts on dev's tstats, so
that udp tunnel can work with no tunnel device safely.

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