> -----Original Message----- > From: Wei li [mailto:liw at dtdream.com] > Sent: Monday, June 1, 2015 11:00 AM > To: dev at 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 >