Fix bug: process input packets error if packet fragment

modified:   lib/ff_dpdk_if.c
This commit is contained in:
Xu Jiaxuan 2017-11-10 13:58:25 +08:00
parent eb5902d97d
commit 4b3bcd46c0
1 changed files with 2 additions and 2 deletions

View File

@ -859,8 +859,8 @@ ff_veth_input(const struct ff_dpdk_if_context *ctx, struct rte_mbuf *pkt)
struct rte_mbuf *pn = pkt->next; struct rte_mbuf *pn = pkt->next;
void *prev = hdr; void *prev = hdr;
while(pn != NULL) { while(pn != NULL) {
data = rte_pktmbuf_mtod(pkt, void*); data = rte_pktmbuf_mtod(pn, void*);
len = rte_pktmbuf_data_len(pkt); len = rte_pktmbuf_data_len(pn);
void *mb = ff_mbuf_get(prev, data, len); void *mb = ff_mbuf_get(prev, data, len);
if (mb == NULL) { if (mb == NULL) {