@@ -699,9 +699,6 @@ netdev_bsd_send(struct netdev *netdev_, int qid OVS_UNUSED,
const void *data = dp_packet_data(batch->packets[i]);
size_t size = dp_packet_size(batch->packets[i]);
- /* Truncate the packet if it is configured. */
- size -= dp_packet_get_cutlen(batch->packets[i]);
-
while (!error) {
ssize_t retval;
if (dev->tap_fd >= 0) {
@@ -1780,8 +1780,6 @@ dpdk_do_tx_copy(struct netdev *netdev, int qid, struct dp_packet_batch *batch)
int newcnt = 0;
int i;
- dp_packet_batch_apply_cutlen(batch);
-
for (i = 0; i < batch->count; i++) {
int size = dp_packet_size(batch->packets[i]);
@@ -1840,7 +1838,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;
@@ -1871,8 +1868,6 @@ netdev_dpdk_send__(struct netdev_dpdk *dev, int qid,
int cnt = batch->count;
struct rte_mbuf **pkts = (struct rte_mbuf **) batch->packets;
- dp_packet_batch_apply_cutlen(batch);
-
cnt = netdev_dpdk_filter_packet_len(dev, pkts, cnt);
cnt = netdev_dpdk_qos_run(dev, pkts, cnt);
dropped = batch->count - cnt;
@@ -1072,8 +1072,6 @@ netdev_dummy_send(struct netdev *netdev, int qid OVS_UNUSED,
break;
}
- size -= dp_packet_get_cutlen(packet);
-
if (size < ETH_HEADER_LEN) {
error = EMSGSIZE;
break;
@@ -1234,9 +1234,6 @@ netdev_linux_send(struct netdev *netdev_, int qid OVS_UNUSED,
size_t size = dp_packet_size(batch->packets[i]);
ssize_t retval;
- /* Truncate the packet if it is configured. */
- size -= dp_packet_get_cutlen(batch->packets[i]);
-
if (!is_tap_netdev(netdev_)) {
/* Use our AF_PACKET socket to send to this device. */
struct iovec iov;
Cutlen already applied while processing OVS_ACTION_ATTR_OUTPUT. Signed-off-by: Ilya Maximets <i.maximets@samsung.com> --- lib/netdev-bsd.c | 3 --- lib/netdev-dpdk.c | 5 ----- lib/netdev-dummy.c | 2 -- lib/netdev-linux.c | 3 --- 4 files changed, 13 deletions(-)