Skip to content

Commit

Permalink
netdev-linux: Use DP_PACKET_BATCH_FOR_EACH in netdev_linux_tap_batch_…
Browse files Browse the repository at this point in the history
…send.

Use DP_PACKET_BATCH_FOR_EACH macro in netdev_linux_tap_batch_send().

Signed-off-by: Bhanuprakash Bodireddy <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
Bhanuprakash Bodireddy authored and blp committed Nov 3, 2017
1 parent ee42dd7 commit 13708b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/netdev-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1232,8 +1232,8 @@ netdev_linux_tap_batch_send(struct netdev *netdev_,
struct dp_packet_batch *batch)
{
struct netdev_linux *netdev = netdev_linux_cast(netdev_);
for (int i = 0; i < batch->count; i++) {
struct dp_packet *packet = batch->packets[i];
struct dp_packet *packet;
DP_PACKET_BATCH_FOR_EACH (packet, batch) {
size_t size = dp_packet_get_send_len(packet);
ssize_t retval;
int error;
Expand Down

0 comments on commit 13708b2

Please sign in to comment.