Skip to content

Commit

Permalink
vhost: fix build with clang 15
Browse files Browse the repository at this point in the history
This variable is not used.

Fixes: abeb865 ("vhost: remove copy threshold for async path")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
  • Loading branch information
david-marchand committed Nov 21, 2022
1 parent b41e574 commit 6546b60
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/vhost/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1877,7 +1877,6 @@ virtio_dev_rx_async_submit_packed(struct virtio_net *dev, struct vhost_virtqueue
struct rte_mbuf **pkts, uint32_t count, int16_t dma_id, uint16_t vchan_id)
{
uint32_t pkt_idx = 0;
uint32_t remained = count;
uint16_t n_xfer;
uint16_t num_buffers;
uint16_t num_descs;
Expand All @@ -1903,7 +1902,6 @@ virtio_dev_rx_async_submit_packed(struct virtio_net *dev, struct vhost_virtqueue
pkts_info[slot_idx].mbuf = pkts[pkt_idx];

pkt_idx++;
remained--;
vq_inc_last_avail_packed(vq, num_descs);
} while (pkt_idx < count);

Expand Down

0 comments on commit 6546b60

Please sign in to comment.