mirror of
https://github.com/openvswitch/ovs
synced 2025-09-05 08:45:23 +00:00
netdev-dpdk: Count and delete every dropped packet
Commit f4fd623c4c
introduced a bug in netdev_dpdk_send(): if multiple
consecutive packets exceed MTU, only the first one is deleted and
counted.
This should fix the bug
Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Thomas Graf <tgraf@noironetworks.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
committed by
Pravin B Shelar
parent
e381def971
commit
1ebfe1ac52
@@ -733,13 +733,13 @@ netdev_dpdk_send(struct netdev *netdev, struct dpif_packet **pkts, int cnt,
|
||||
dpdk_queue_pkts(dev, qid,
|
||||
(struct rte_mbuf **)&pkts[next_tx_idx],
|
||||
i-next_tx_idx);
|
||||
|
||||
VLOG_WARN_RL(&rl, "Too big size %d max_packet_len %d",
|
||||
(int)size , dev->max_packet_len);
|
||||
|
||||
dpif_packet_delete(pkts[i]);
|
||||
dropped++;
|
||||
}
|
||||
|
||||
VLOG_WARN_RL(&rl, "Too big size %d max_packet_len %d",
|
||||
(int)size , dev->max_packet_len);
|
||||
|
||||
dpif_packet_delete(pkts[i]);
|
||||
dropped++;
|
||||
next_tx_idx = i + 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user