Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/15954/?format=api
https://patches.dpdk.org/api/patches/15954/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1474367963-83879-1-git-send-email-dror.birkman@lightcyber.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1474367963-83879-1-git-send-email-dror.birkman@lightcyber.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1474367963-83879-1-git-send-email-dror.birkman@lightcyber.com", "date": "2016-09-20T10:39:23", "name": "[dpdk-dev] pcap: fix memory leak in jumbo frames", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "599fd63dc7a20cc054f91ce6e7e5b968d8544e2d", "submitter": { "id": 420, "url": "https://patches.dpdk.org/api/people/420/?format=api", "name": "Dror Birkman", "email": "dror.birkman@lightcyber.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1474367963-83879-1-git-send-email-dror.birkman@lightcyber.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/15954/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/15954/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 6B5C45A0A;\n\tTue, 20 Sep 2016 12:39:41 +0200 (CEST)", "from mail-wm0-f48.google.com (mail-wm0-f48.google.com\n\t[74.125.82.48]) by dpdk.org (Postfix) with ESMTP id EDC23590E\n\tfor <dev@dpdk.org>; Tue, 20 Sep 2016 12:39:39 +0200 (CEST)", "by mail-wm0-f48.google.com with SMTP id l132so201063302wmf.0\n\tfor <dev@dpdk.org>; Tue, 20 Sep 2016 03:39:39 -0700 (PDT)", "from localhost.localdomain (bzq-156-168-31-238.red.bezeqint.net.\n\t[31.168.156.238]) by smtp.gmail.com with ESMTPSA id\n\tv189sm26688570wmv.12.2016.09.20.03.39.37\n\t(version=TLS1 cipher=AES128-SHA bits=128/128);\n\tTue, 20 Sep 2016 03:39:39 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=lightcyber-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id;\n\tbh=2b3a/XJN95fXXF3BeUs4FrsCzf7BaGvRq3bLowsW4Xk=;\n\tb=zfWbnwpmF3+7yDyou2RonaKc+3+jNtA1Yumkv1SjwQ3/oxaz6m47vLiIhFenjxwPYS\n\tC2a1CEwILx+xPKGP95yHfYD59bIoOWab0iSKkwhW192+0V66qDARRA2QB+os9HkJkr5y\n\tW23FdWknEieCFEFsKbMw64IejNkJ5V/1t1j0h3JBSXglJEZkBAdizXGXYHii+ea4yzrH\n\tYPZo8h5bn/O08YY0F6228i72R1rgyCyyLIHHPkajZzJt3WlN3tEIUouzLn4KCOxvXYeB\n\tiDUpnIZxt04QzJwjF1DhsuiKTXacLljuXTHSOLgbTbatt2/2aRU421oRSw9oS/zBRj89\n\tgYqA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=2b3a/XJN95fXXF3BeUs4FrsCzf7BaGvRq3bLowsW4Xk=;\n\tb=PsVjap5AIjDLWW8L4HVRa1t/3PKxzEIM5QGveLjKT4M5IS8G3GimLAPxAStfpaTG1z\n\tzK+LQIpZ2sqZuGxHKDAotEX2QK92mI2XumxWfAnBqb5H2irUqkCht11D8IeeXqp2yb+J\n\tJvHbfc+3A74Bv0AfLaWOliW6DcOdoYf5OTB5n/S4y45aMSzI7eIwtFYbYoHEtMQSk3aO\n\topdcDsF1285ieL5bNUmDCibtV97DcSnsTEvWS19JkPnUWGzRhLSznLgC/wCaFKUFH8Su\n\tlUNNjbWhlw7yMjQqGckzfaAHaPYLVAPl1N0tTtEvzD48PzTA3UPuvdv8MHDUmjkYUA1O\n\tmDZw==", "X-Gm-Message-State": "AE9vXwPsw7Gjd7hGIXZFWPCDr+PCaA3jnMeL4TUqkHKk7BXjZFg9TEyTbeSktLbU6E3/bA==", "X-Received": "by 10.194.175.106 with SMTP id\n\tbz10mr28308582wjc.42.1474367979771; \n\tTue, 20 Sep 2016 03:39:39 -0700 (PDT)", "From": "Dror Birkman <dror.birkman@lightcyber.com>", "To": "nicolas.pernas.maradei@emutex.com,\n\tferruh.yigit@intel.com", "Cc": "dev@dpdk.org,\n\tDror Birkman <dror.birkman@lightcyber.com>", "Date": "Tue, 20 Sep 2016 13:39:23 +0300", "Message-Id": "<1474367963-83879-1-git-send-email-dror.birkman@lightcyber.com>", "X-Mailer": "git-send-email 2.6.3", "Subject": "[dpdk-dev] [PATCH] pcap: fix memory leak in jumbo frames", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "If rte_pktmbuf_alloc() fails on any segment that is not the initial\nsegment, previously allocated mbufs are not freed.\n\nSigned-off-by: Dror Birkman <dror.birkman@lightcyber.com>\n---\n drivers/net/pcap/rte_eth_pcap.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c\nindex b7a3b03..db19a66 100644\n--- a/drivers/net/pcap/rte_eth_pcap.c\n+++ b/drivers/net/pcap/rte_eth_pcap.c\n@@ -229,8 +229,10 @@ eth_pcap_rx(void *queue,\n \t\t\tif (unlikely(eth_pcap_rx_jumbo(pcap_q->mb_pool,\n \t\t\t\t\t\t mbuf,\n \t\t\t\t\t\t packet,\n-\t\t\t\t\t\t header.caplen) == -1))\n+\t\t\t\t\t\t header.caplen) == -1)) {\n+\t\t\t\trte_pktmbuf_free(mbuf);\n \t\t\t\tbreak;\n+\t\t\t}\n \t\t}\n \n \t\tmbuf->pkt_len = (uint16_t)header.caplen;\n", "prefixes": [ "dpdk-dev" ] }{ "id": 15954, "url": "