From: Joyce Kong Date: Wed, 24 Jun 2020 08:45:10 +0000 (+0800) Subject: net/virtio: simplify variable name X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9e190e97c9950cdc580981b1a79521e7d942f57d;p=dpdk.git net/virtio: simplify variable name Virtio_hw *hw has been pointed to vq->hw, it is better to use hw instead of vq->hw in later code. Signed-off-by: Joyce Kong Reviewed-by: Honnappa Nagarahalli Reviewed-by: Chenbo Xia Reviewed-by: Maxime Coquelin --- diff --git a/drivers/net/virtio/virtio_rxtx_simple_neon.c b/drivers/net/virtio/virtio_rxtx_simple_neon.c index 363e2b330b..8e6fa1fd73 100644 --- a/drivers/net/virtio/virtio_rxtx_simple_neon.c +++ b/drivers/net/virtio/virtio_rxtx_simple_neon.c @@ -71,8 +71,8 @@ virtio_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts, */ uint16x8_t len_adjust = { 0, 0, - (uint16_t)vq->hw->vtnet_hdr_size, 0, - (uint16_t)vq->hw->vtnet_hdr_size, + (uint16_t)hw->vtnet_hdr_size, 0, + (uint16_t)hw->vtnet_hdr_size, 0, 0, 0 };