Commit c5eba0b6 authored by Li RongQing's avatar Li RongQing Committed by David S. Miller

openvswitch: distinguish between the dropped and consumed skb

distinguish between the dropped and consumed skb, not assume the skb
is consumed always

Cc: Thomas Graf <>
Cc: Pravin Shelar <>
Signed-off-by: default avatarLi RongQing <>
Acked-by: default avatarPravin B Shelar <>
Signed-off-by: default avatarDavid S. Miller <>
parent bec6bfb2
......@@ -265,8 +265,11 @@ void ovs_dp_process_received_packet(struct vport *p, struct sk_buff *skb)
upcall.key = &key;
upcall.userdata = NULL;
upcall.portid = ovs_vport_find_upcall_portid(p, skb);
ovs_dp_upcall(dp, skb, &upcall);
error = ovs_dp_upcall(dp, skb, &upcall);
if (unlikely(error))
stats_counter = &stats->n_missed;
goto out;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment