datapath: Free skb dropped by lisp_tnl_send().
authorJarno Rajahalme <jarno.rajahalme@nsn.com>
Tue, 7 May 2013 17:52:03 +0000 (20:52 +0300)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 7 May 2013 18:43:38 +0000 (11:43 -0700)
vport->send functions must free the skbs they themselves report as
dropped (return 0).

Signed-off-by: Jarno Rajahalme <jarno.rajahalme@nsn.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
datapath/vport-lisp.c

index ca2b441..3d0a315 100644 (file)
@@ -377,6 +377,7 @@ static int lisp_tnl_send(struct vport *vport, struct sk_buff *skb)
                                LISP_HLEN, lisp_build_header);
                return tnl_len > 0 ? tnl_len + network_offset : tnl_len;
        default:
+               kfree_skb(skb);
                return 0;
        }
 }