Commit a40959d6 authored by Joanne Hugé's avatar Joanne Hugé

WIP

parent d7763907
......@@ -3,10 +3,11 @@
CC=gcc -m64 -mavx2
CXX=g++ -m64 -mavx2
CFLAGS=-O3 -fno-strict-aliasing -Wall -pedantic -g
CFLAGS=-fno-strict-aliasing -Wall -pedantic
CFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CFLAGS +=-DALLOW_EXPERIMENTAL_API
CFLAGS+=-MMD -g
CFLAGS+=-O3 -MMD
#CFLAGS+=-Og -g -MMD
CXXFLAGS=$(CFLAGS)
# binary name
......
......@@ -694,9 +694,9 @@ static void *send_thread(void *p) {
eth_hdr->d_addr = d_addr;
eth_hdr->s_addr = s_addr;
eth_hdr->ether_type = htons(0xaefe);
memcpy(rte_pktmbuf_mtod_offset(pkt[i], uint8_t *, sizeof(struct rte_ether_hdr)), RBUF_READ0(tx_rbuf, uint8_t), 8 + s->tx_n_channel * 60);
memcpy(rte_pktmbuf_mtod_offset(pkt[i], uint8_t *, sizeof(struct rte_ether_hdr)), RBUF_READ0(tx_rbuf, uint8_t), tx_rbuf.len);
rbuf_update_read_index(&tx_rbuf);
pkt_size = 22 + s->tx_n_channel * 60;
pkt_size = 14 + tx_rbuf.len;
pkt[i]->data_len = pkt_size;
pkt[i]->pkt_len = pkt_size;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment