Following commit slightly improves code readability. It is
also correctness fix as ip_local_out() was storing error
code in err which was not int.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
int ovs_tnl_send(struct vport *vport, struct sk_buff *skb)
{
struct tnl_vport *tnl_vport = tnl_vport_priv(vport);
- enum vport_err_type err = VPORT_E_TX_ERROR;
struct rtable *rt;
__be32 saddr;
int sent_len = 0;
struct sk_buff *next_skb = skb->next;
struct iphdr *iph;
int frag_len;
+ int err;
skb->next = NULL;
ip_rt_put(rt);
error_free:
kfree_skb(skb);
- ovs_vport_record_error(vport, err);
+ ovs_vport_record_error(vport, VPORT_E_TX_ERROR);
return sent_len;
}