ipv6: Initial skb->dev and skb->protocol in ip6_output
authorChenbo Feng <fengc@google.com>
Fri, 9 Jun 2017 19:06:07 +0000 (12:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jun 2017 19:07:56 +0000 (15:07 -0400)
commit97a7a37a7b7bf3dd16f6fa13cfd7ffacd01a352f
tree57c7219022daefdf34fe84a408114322bffee709
parentd86cc04e22ead660eeb362b28119c7cb1fbd9d06
ipv6: Initial skb->dev and skb->protocol in ip6_output

Move the initialization of skb->dev and skb->protocol from
ip6_finish_output2 to ip6_output. This can make the skb->dev and
skb->protocol information avalaible to the CGROUP eBPF filter.

Signed-off-by: Chenbo Feng <fengc@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c