mirror of
https://github.com/openvswitch/ovs
synced 2025-09-01 14:55:18 +00:00
netdev: Remove useless cutlen.
Cutlen already applied while processing OVS_ACTION_ATTR_OUTPUT. Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com
This commit is contained in:
committed by
Ian Stokes
parent
b30896c969
commit
ad8b0b4fe7
@@ -1843,8 +1843,6 @@ dpdk_do_tx_copy(struct netdev *netdev, int qid, struct dp_packet_batch *batch)
|
||||
dropped += batch_cnt - cnt;
|
||||
}
|
||||
|
||||
dp_packet_batch_apply_cutlen(batch);
|
||||
|
||||
uint32_t txcnt = 0;
|
||||
|
||||
for (uint32_t i = 0; i < cnt; i++) {
|
||||
@@ -1899,7 +1897,6 @@ netdev_dpdk_vhost_send(struct netdev *netdev, int qid,
|
||||
dpdk_do_tx_copy(netdev, qid, batch);
|
||||
dp_packet_delete_batch(batch, true);
|
||||
} else {
|
||||
dp_packet_batch_apply_cutlen(batch);
|
||||
__netdev_dpdk_vhost_send(netdev, qid, batch->packets, batch->count);
|
||||
}
|
||||
return 0;
|
||||
@@ -1930,8 +1927,6 @@ netdev_dpdk_send__(struct netdev_dpdk *dev, int qid,
|
||||
int batch_cnt = dp_packet_batch_size(batch);
|
||||
struct rte_mbuf **pkts = (struct rte_mbuf **) batch->packets;
|
||||
|
||||
dp_packet_batch_apply_cutlen(batch);
|
||||
|
||||
tx_cnt = netdev_dpdk_filter_packet_len(dev, pkts, batch_cnt);
|
||||
tx_cnt = netdev_dpdk_qos_run(dev, pkts, tx_cnt, true);
|
||||
dropped = batch_cnt - tx_cnt;
|
||||
|
Reference in New Issue
Block a user