Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/8278/?format=api
http://patches.dpdk.org/api/patches/8278/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/CANDrEHmuZpTVGHCkLqcr7-dCvKxwFRfGA595-DVNz_NHPOXbgg@mail.gmail.com/", "project": { "id": 1, "url": "http://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": "<CANDrEHmuZpTVGHCkLqcr7-dCvKxwFRfGA595-DVNz_NHPOXbgg@mail.gmail.com>", "list_archive_url": "https://inbox.dpdk.org/dev/CANDrEHmuZpTVGHCkLqcr7-dCvKxwFRfGA595-DVNz_NHPOXbgg@mail.gmail.com", "date": "2015-10-29T23:21:53", "name": "[dpdk-dev] Release of Packet Journey", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": true, "hash": "d71662cb18b3a1aa8829adf8224c893d94dbd0a5", "submitter": { "id": 210, "url": "http://patches.dpdk.org/api/people/210/?format=api", "name": "Vladimir Medvedkin", "email": "medvedkinv@gmail.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/CANDrEHmuZpTVGHCkLqcr7-dCvKxwFRfGA595-DVNz_NHPOXbgg@mail.gmail.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/8278/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/8278/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 081265A50;\n\tFri, 30 Oct 2015 00:21:55 +0100 (CET)", "from mail-lf0-f43.google.com (mail-lf0-f43.google.com\n\t[209.85.215.43]) by dpdk.org (Postfix) with ESMTP id 9A7675A4F\n\tfor <dev@dpdk.org>; Fri, 30 Oct 2015 00:21:53 +0100 (CET)", "by lfbn126 with SMTP id n126so25707404lfb.2\n\tfor <dev@dpdk.org>; Thu, 29 Oct 2015 16:21:53 -0700 (PDT)", "by 10.114.199.4 with HTTP; Thu, 29 Oct 2015 16:21:53 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=mime-version:in-reply-to:references:date:message-id:subject:from:to\n\t:cc:content-type;\n\tbh=ouOgMf/HH9l+FyS9g4vE8D6An54wE0ZOcqXwfFH55ZM=;\n\tb=mm/MC4ZYS5OmUudxtLp/baDcI8qxBN92aArpdxq0kv7ajREqe/sHbIB0mQs1davfHd\n\tJzAlG7M+BEle7Tt36DtsikA7oraYpG/DeR9hl+78c4cN4+sZ/9N1QCo3YqL5nVNaiOxv\n\tihZug+Die9EkBdzFLozk3t1EKIuu9shi1T6h8oo3hNvzN/PtSwzRK+QQG014soadm8A1\n\tWffzaVsgd4qW0Fg4cvIlBkfzNQ8u7br1QF8WfydCgAPtedB98MP3EBTLvKpZU0JETYOX\n\tNKVz9G3337vOFAYvzMYiGw48+SeJKNWAFlsTg/eDV7l2XBXFGf73Gixd6BTvIvii1knp\n\tOMFA==", "MIME-Version": "1.0", "X-Received": "by 10.25.152.70 with SMTP id a67mr1531549lfe.100.1446160913301; \n\tThu, 29 Oct 2015 16:21:53 -0700 (PDT)", "In-Reply-To": "<56327945.3090804@gandi.net>", "References": "<56327945.3090804@gandi.net>", "Date": "Fri, 30 Oct 2015 02:21:53 +0300", "Message-ID": "<CANDrEHmuZpTVGHCkLqcr7-dCvKxwFRfGA595-DVNz_NHPOXbgg@mail.gmail.com>", "From": "Vladimir Medvedkin <medvedkinv@gmail.com>", "To": "Nikita Kozlov <nikita@gandi.net>", "Content-Type": "text/plain; charset=UTF-8", "X-Content-Filtered-By": "Mailman/MimeDel 2.1.15", "Cc": "\"dev@dpdk.org\" <dev@dpdk.org>", "Subject": "Re: [dpdk-dev] Release of Packet Journey", "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": "Hi Nikita,\n\nFirst of all thank you for published your project.\nPlease apply this patch below\n\nwithout it your project is not compiled.\n\nFurther your app breaks with segment fault. I run it as follows\nroot@war202:~/PKTJ/packet-journey#\n./build/app/x86_64-native-linuxapp-gcc/app/pktj -l 0,1,2,3 -n 4\n--socket-mem=4096 --log-level=4 -- --configfile\n/home/medved/PKTJ/packet-journey/tests/integration/lab00/pktj.conf\nPKTJ_ACL: IPv6 ACL entries 0:\nPKTJ_ACL: IPv4 ACL entries 1:\nPKTJ_ACL: 1:PKTJ_ACL: 0.0.0.0/0 PKTJ_ACL: 1.2.6.0/24 PKTJ_ACL: 0 :\n65535 0 : 65535 0x0/0x0 PKTJ_ACL: 0xffffffff-0x0-0xf0000000 PKTJ_ACL:\nacl context <pktj-acl-ipv40-0>@0x7fd3bf41aa80\n socket_id=0\n alg=3\n max_rules=100000\n rule_size=96\n num_rules=1\n num_categories=1\n num_tries=1\nACL: allocation of 9600904 bytes on socket 1 for ACL_pktj-acl-ipv41-0 failed\nPKTJ_ACL: Failed to create ACL context\nPKTJ_ACL: setup_acl failed for ipv4 with socketid 1, keeping previous rules\nfor that socket\nACL: allocation of 9600904 bytes on socket 2 for ACL_pktj-acl-ipv42-0 failed\nPKTJ_ACL: Failed to create ACL context\nPKTJ_ACL: setup_acl failed for ipv4 with socketid 2, keeping previous rules\nfor that socket\nACL: allocation of 9600904 bytes on socket 3 for ACL_pktj-acl-ipv43-0 failed\nPKTJ_ACL: Failed to create ACL context\nPKTJ_ACL: setup_acl failed for ipv4 with socketid 3, keeping previous rules\nfor that socket\n Address:90:E2:BA:39:2A:D8\nport=0 tx_queueid=3 nb_txd=512 kni\nlaunching control thread for socketid 0 on lcore 0\nCMDLINE1: symlink() failed\nSegmentation fault\n\nRegards,\nVladimir\n\n\n\n2015-10-29 22:53 GMT+03:00 Nikita Kozlov <nikita@gandi.net>:\n\n> Hello,\n>\n> We have opensourced our dpdk-based project, Packet Journey\n> https://github.com/Gandi/packet-journey .\n>\n> Packet Journey is a combinationof Linux RT_NETLINK and severalparts\n> ofDPDK (rte_kni, rte_lpm, rte_acl, rte_cmdline) and is intended to\n> serveas an edge router.\n>\n> Our use case is:\n> - pktj starts several forwarding threads and a KNI thread per external port\n> - pktj launches a script which configures the KNI interface (MAC, IP,\n> VLAN) and launches a BGP daemon\n> - the host receives routes from the BGP daemon\n> - the BGP daemon injects the routes in Linux\n> - pktj receives the routes from NETLINK and put them in LPM in our\n> \"control\" threads\n> - pktj forwards packets to the KNI if the packets are\n> - for the KNI IP or\n> - if the neighbor is not known yet\n> - if ttl reaches 0\n> - pktj filters packets if they match an ACLor if they exceed the rate\n> limit, kni output is also rate-limited\n> - pktj forwards packetsdirectly from the RXqueue to the TXqueue if the\n> neighbor is known\n>\n> --\n> Nikita\n>", "diff": "diff --git a/app/acl.h b/app/acl.h\nindex fb2f73a..74a1dd5 100644\n--- a/app/acl.h\n+++ b/app/acl.h\n@@ -72,4 +72,21 @@ extern struct acl_parm acl_parm_config;\n extern struct rte_acl_ctx *ipv4_acx[NB_SOCKETS];\n extern struct rte_acl_ctx *ipv6_acx[NB_SOCKETS];\n\n+/*\n+ * That effectively defines order of IPV4VLAN classifications:\n+ * - PROTO\n+ * - VLAN (TAG and DOMAIN)\n+ * - SRC IP ADDRESS\n+ * - DST IP ADDRESS\n+ * - PORTS (SRC and DST)\n+ */\n+enum {\n+ RTE_ACL_IPV4VLAN_PROTO,\n+ RTE_ACL_IPV4VLAN_VLAN,\n+ RTE_ACL_IPV4VLAN_SRC,\n+ RTE_ACL_IPV4VLAN_DST,\n+ RTE_ACL_IPV4VLAN_PORTS,\n+ RTE_ACL_IPV4VLAN_NUM\n+};\n+\n #endif\n", "prefixes": [ "dpdk-dev" ] }{ "id": 8278, "url": "