net/virtio: simplify variable name
authorJoyce Kong <joyce.kong@arm.com>
Wed, 24 Jun 2020 08:45:10 +0000 (16:45 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:31 +0000 (14:52 +0200)
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 <joyce.kong@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_rxtx_simple_neon.c

index 363e2b3..8e6fa1f 100644 (file)
@@ -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
        };