From 26d3eba6b1fac990c24cb5e026a5e11968667b47 Mon Sep 17 00:00:00 2001 From: chenwei Date: Wed, 30 May 2018 10:36:16 +0800 Subject: [PATCH] Fstack: fixbug, bad checksum would lead to memleak of dpdk mbuf --- lib/ff_dpdk_if.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ff_dpdk_if.c b/lib/ff_dpdk_if.c index a05815c8..4f517e52 100644 --- a/lib/ff_dpdk_if.c +++ b/lib/ff_dpdk_if.c @@ -835,6 +835,7 @@ ff_veth_input(const struct ff_dpdk_if_context *ctx, struct rte_mbuf *pkt) uint8_t rx_csum = ctx->hw_features.rx_csum; if (rx_csum) { if (pkt->ol_flags & (PKT_RX_IP_CKSUM_BAD | PKT_RX_L4_CKSUM_BAD)) { + rte_pktmbuf_free(pkt); return; } }