mirror of https://github.com/F-Stack/f-stack.git
Merge branch 'master' of https://github.com/F-Stack/f-stack
This commit is contained in:
commit
dfbc4ac350
|
@ -1342,6 +1342,12 @@ ff_dpdk_if_send(struct ff_dpdk_if_context *ctx, void *m,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (prev != NULL) {
|
||||||
|
prev->next = cur;
|
||||||
|
}
|
||||||
|
head->nb_segs++;
|
||||||
|
|
||||||
|
prev = cur;
|
||||||
void *data = rte_pktmbuf_mtod(cur, void*);
|
void *data = rte_pktmbuf_mtod(cur, void*);
|
||||||
int len = total > RTE_MBUF_DEFAULT_DATAROOM ? RTE_MBUF_DEFAULT_DATAROOM : total;
|
int len = total > RTE_MBUF_DEFAULT_DATAROOM ? RTE_MBUF_DEFAULT_DATAROOM : total;
|
||||||
int ret = ff_mbuf_copydata(m, data, off, len);
|
int ret = ff_mbuf_copydata(m, data, off, len);
|
||||||
|
@ -1351,15 +1357,10 @@ ff_dpdk_if_send(struct ff_dpdk_if_context *ctx, void *m,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prev != NULL) {
|
|
||||||
prev->next = cur;
|
|
||||||
}
|
|
||||||
prev = cur;
|
|
||||||
|
|
||||||
cur->data_len = len;
|
cur->data_len = len;
|
||||||
off += len;
|
off += len;
|
||||||
total -= len;
|
total -= len;
|
||||||
head->nb_segs++;
|
|
||||||
cur = NULL;
|
cur = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue