Merge pull request #98 from xujiaxuan/master

Fix bug: process input packets error if packet fragment
This commit is contained in:
logwang 2017-11-10 14:41:09 +08:00 committed by GitHub
commit 8966cc7c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
void *prev = hdr;
while(pn != NULL) {
data = rte_pktmbuf_mtod(pkt, void*);
len = rte_pktmbuf_data_len(pkt);
data = rte_pktmbuf_mtod(pn, void*);
len = rte_pktmbuf_data_len(pn);
void *mb = ff_mbuf_get(prev, data, len);
if (mb == NULL) {