Merge remote-tracking branch 'lightnvm/for-next'
[deliverable/linux.git] / net / ipv6 / output_core.c
index 462f2a76b5c2270dba806e193a4c5bde57e14a39..7cca8ac66fe9b07a9f91559667c057113ccc3c19 100644 (file)
@@ -148,6 +148,13 @@ int __ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
        ipv6_hdr(skb)->payload_len = htons(len);
        IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr);
 
+       /* if egress device is enslaved to an L3 master device pass the
+        * skb to its handler for processing
+        */
+       skb = l3mdev_ip6_out(sk, skb);
+       if (unlikely(!skb))
+               return 0;
+
        return nf_hook(NFPROTO_IPV6, NF_INET_LOCAL_OUT,
                       net, sk, skb, NULL, skb_dst(skb)->dev,
                       dst_output);
This page took 0.023576 seconds and 5 git commands to generate.