[dpdk-dev] [PATCH v1] net/virtio: simplify variable name
Xia, Chenbo
chenbo.xia at intel.com
Sun Jun 28 06:57:26 CEST 2020
> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Joyce Kong
> Sent: Wednesday, June 24, 2020 4:45 PM
> To: jerinj at marvell.com; maxime.coquelin at redhat.com; Wang, Zhihong
> <zhihong.wang at intel.com>; Ye, Xiaolong <xiaolong.ye at intel.com>;
> ruifeng.wang at arm.com; honnappa.nagarahalli at arm.com; phil.yang at arm.com
> Cc: dev at dpdk.org; nd at arm.com
> Subject: [dpdk-dev] [PATCH v1] 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 <joyce.kong at arm.com>
> ---
> drivers/net/virtio/virtio_rxtx_simple_neon.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/virtio/virtio_rxtx_simple_neon.c
> b/drivers/net/virtio/virtio_rxtx_simple_neon.c
> index 363e2b330..8e6fa1fd7 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
> };
> --
> 2.27.0
Reviewed-by: Chenbo Xia <chenbo.xia at intel.com>
More information about the dev
mailing list