[dpdk-dev] [PATCH v2 2/7] virtio: add software rx ring, fake_buf into virtqueue

Stephen Hemminger stephen at networkplumber.org
Mon Oct 19 06:20:12 CEST 2015


On Sun, 18 Oct 2015 14:28:59 +0800
Huawei Xie <huawei.xie at intel.com> wrote:

> +		if (vq->sw_ring)
> +			rte_free(vq->sw_ring);
> +

Do not need to test for NULL before calling rte_free.
Better to just rely on the fact that rte_free(NULL) is documented
to be ok (no operation).


More information about the dev mailing list