DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] lib_vhost:reset secure_len when rte_atomic16_cmpset failed
@ 2015-06-01  3:00 Wei li
  2015-06-01  4:49 ` Ouyang, Changchun
  0 siblings, 1 reply; 2+ messages in thread
From: Wei li @ 2015-06-01  3:00 UTC (permalink / raw)
  To: dev

---
 lib/librte_vhost/vhost_rxtx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c
index 4809d32..fb3e72a 100644
--- a/lib/librte_vhost/vhost_rxtx.c
+++ b/lib/librte_vhost/vhost_rxtx.c
@@ -431,6 +431,7 @@ virtio_dev_merge_rx(struct virtio_net *dev, uint16_t queue_id,
 			 */
 			res_base_idx = vq->last_used_idx_res;
 			res_cur_idx = res_base_idx;
+			secure_len = 0;
 
 			do {
 				avail_idx = *((volatile uint16_t *)&vq->avail->idx);
-- 
1.9.5.msysgit.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] lib_vhost:reset secure_len when rte_atomic16_cmpset failed
  2015-06-01  3:00 [dpdk-dev] [PATCH] lib_vhost:reset secure_len when rte_atomic16_cmpset failed Wei li
@ 2015-06-01  4:49 ` Ouyang, Changchun
  0 siblings, 0 replies; 2+ messages in thread
From: Ouyang, Changchun @ 2015-06-01  4:49 UTC (permalink / raw)
  To: Wei li, dev



> -----Original Message-----
> From: Wei li [mailto:liw@dtdream.com]
> Sent: Monday, June 1, 2015 11:00 AM
> To: dev@dpdk.org
> Cc: Ouyang, Changchun
> Subject: [PATCH] lib_vhost:reset secure_len when rte_atomic16_cmpset
> failed
> 

The one line change is ok, but need more description.

> ---
>  lib/librte_vhost/vhost_rxtx.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c
> index 4809d32..fb3e72a 100644
> --- a/lib/librte_vhost/vhost_rxtx.c
> +++ b/lib/librte_vhost/vhost_rxtx.c
> @@ -431,6 +431,7 @@ virtio_dev_merge_rx(struct virtio_net *dev, uint16_t
> queue_id,
>  			 */
>  			res_base_idx = vq->last_used_idx_res;
>  			res_cur_idx = res_base_idx;
> +			secure_len = 0;
> 
>  			do {
>  				avail_idx = *((volatile uint16_t *)&vq->avail-
> >idx);
> --
> 1.9.5.msysgit.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-01  4:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-01  3:00 [dpdk-dev] [PATCH] lib_vhost:reset secure_len when rte_atomic16_cmpset failed Wei li
2015-06-01  4:49 ` Ouyang, Changchun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).