numam-dpdk/lib
Yuanhan Liu b3869ebebf vhost: remove unnecessary memset when enqueueing
We have to reset the virtio net hdr at virtio_enqueue_offload()
before, due to all mbufs share a single virtio_hdr structure:

	struct virtio_net_hdr_mrg_rxbuf virtio_hdr = {{0, }, 0};

	foreach (mbuf) {
		virtio_enqueue_offload(mbuf, &virtio_hdr.hdr);

		copy net hdr and mbuf to desc buf
	}

However, after the vhost rxtx refactor, the code looks like:

	copy_mbuf_to_desc(mbuf)
	{
		struct virtio_net_hdr_mrg_rxbuf virtio_hdr = {{0, }, 0}

		virtio_enqueue_offload(mbuf, &virtio_hdr.hdr);

		copy net hdr and mbuf to desc buf
	}

	foreach (mbuf) {
		copy_mbuf_to_desc(mbuf);
	}

Therefore, the memset at virtio_enqueue_offload() is not necessary
any more; remove it.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
2016-03-17 21:53:06 +01:00
..
librte_acl
librte_cfgfile cfgfile: support looking up sections by index 2016-02-29 11:28:31 +01:00
librte_cmdline cmdline: bump library version 2016-03-09 16:13:14 +01:00
librte_compat
librte_cryptodev cryptodev: add capabilities discovery 2016-03-11 10:43:09 +01:00
librte_distributor
librte_eal version: 16.04-rc1 2016-03-16 21:47:28 +01:00
librte_ether bonding: fix detach of slave devices 2016-03-16 19:05:47 +01:00
librte_hash hash: fix CRC32c computation 2016-03-01 14:37:26 +01:00
librte_ip_frag
librte_ivshmem
librte_jobstats jobstats: add abort function 2016-02-29 11:22:53 +01:00
librte_kni
librte_kvargs
librte_lpm lpm/arm: support NEON 2016-03-11 15:56:07 +01:00
librte_mbuf ixgbe: offload VxLAN and NVGRE Rx checksum on X550 2016-03-13 11:52:52 +01:00
librte_mempool mempool: fix leak when creation fails 2016-02-19 16:17:45 +01:00
librte_meter
librte_net
librte_pipeline pipeline: add new functions for action handlers 2016-03-10 01:29:42 +01:00
librte_port port: add pcap file dump 2016-03-13 16:04:11 +01:00
librte_power
librte_reorder
librte_ring
librte_sched sched: eliminate floating point in calculating byte clock 2016-03-13 23:31:59 +01:00
librte_table lpm: add a new config structure for IPv4 2016-03-09 23:05:05 +01:00
librte_timer
librte_vhost vhost: remove unnecessary memset when enqueueing 2016-03-17 21:53:06 +01:00
Makefile mbuf_offload: remove library 2016-03-10 21:08:28 +01:00