vmxnet3: fix stop/restart
authorYong Wang <yongwang@vmware.com>
Wed, 5 Nov 2014 01:49:40 +0000 (17:49 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 14 Nov 2014 16:31:18 +0000 (17:31 +0100)
commit5aecdc17a97d990e81844a77d3f22334932db467
tree7b07d89724718268ea9c60dac66b1844c56eb529
parent3604496377da6eb744eb0f4eaf449099b5b02178
vmxnet3: fix stop/restart

This change makes vmxnet3 consistent with other pmds in
terms of dev_stop behavior: rather than releasing tx/rx
rings, it only resets the ring structure and release the
pending mbufs.

Verified with various tests (test-pmd and pktgen) over
vmxnet3 that dev stop/restart works fine.

Signed-off-by: Yong Wang <yongwang@vmware.com>
lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c