datapath: Simplify vport_send() error handling.
authorPravin B Shelar <pshelar@nicira.com>
Mon, 22 Dec 2014 12:53:02 +0000 (04:53 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Wed, 24 Dec 2014 00:36:49 +0000 (16:36 -0800)
commit93258bd717fe8d08711bca6bfc12a7825287f213
treed48c0889d3b883f01223aeb19396b5ba25ba3bec
parentb1b3fb138f4d5c942b69dd948963f978ee180a8f
datapath: Simplify vport_send() error handling.

Today vport-send has complex error handling because it involves
freeing skb and updating stats depending on return value from
vport send implementation.
This can be simplified by delegating responsibility of freeing
skb to the vport implementation for all cases. So that
vport-send needs just update stats.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/linux/compat/vxlan.c
datapath/vport-geneve.c
datapath/vport-gre.c
datapath/vport-lisp.c
datapath/vport-vxlan.c
datapath/vport.c