Re: [dpdk-dev] [PATCH v3 17/34] net/ice: support device and queue ops

2018-12-12 Thread Lu, Wenzhuo
Hi Mattias, > -Original Message- > From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > Sent: Thursday, December 13, 2018 4:07 AM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Yang, Qiming ; Li, Xiaoyun > ; Wu, Jingjing > Subject: Re: [dpdk-dev] [PATCH v3 17

Re: [dpdk-dev] [PATCH v3 17/34] net/ice: support device and queue ops

2018-12-12 Thread Mattias Rönnblom
On 2018-12-12 07:59, Wenzhuo Lu wrote: /../ + + for (i = 0; i < len * sizeof(union ice_rx_desc); i++) + ((volatile char *)rxq->rx_ring)[i] = 0; More of a general question... but why doesn't DPDK has the READ/WRITE_ONCE() of the Linux kernel? Would reduce the amount of op

[dpdk-dev] [PATCH v3 17/34] net/ice: support device and queue ops

2018-12-11 Thread Wenzhuo Lu
Normally when starting/stopping the device the queue should be started and stopped. Support them both in this patch. Below ops are added, dev_configure dev_start dev_stop dev_close dev_reset rx_queue_start rx_queue_stop tx_queue_start tx_queue_stop rx_queue_setup rx_queue_release tx_queue_setup tx