From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-f171.google.com (mail-ot0-f171.google.com [74.125.82.171]) by dpdk.org (Postfix) with ESMTP id E9365FB10 for ; Wed, 29 Mar 2017 23:01:45 +0200 (CEST) Received: by mail-ot0-f171.google.com with SMTP id t8so18874241otf.3 for ; Wed, 29 Mar 2017 14:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=EM5mQESUc15RvkKX7ekvk9pS2izaJz/N6TyKOYDumAA=; b=nach2PqHyejQ7nO+lQ+gueAO3MYilEXF6qjLPaIz2HnplQHSUskVY0Qv5+eVudCITv JvmSUtGb0T/y7krXJ+cCEUR1UmDg9rEq7rkTwYR9tVCY8WmHias0re/1gA/+5fz67moZ WxnYx17wl3AUEfJ1wAxQRCdrYLOG1No1cn7RpGDJF/clg5g/T+fpEPk6Y0K89uNbgKMu 6hdKpxR0tJEfuATSYob8XEUxu1Z+t4tDg92wfpIEDRIqDJmoqouXZi1niHsv9sIvue17 rBUDWHmsvKxYH65Pohc5VjFHtIpTJ/WQVBTdq9IHtM0f/YW6B1QjfZTCcYCc72Bk/YnL 6IGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EM5mQESUc15RvkKX7ekvk9pS2izaJz/N6TyKOYDumAA=; b=fhGPZhE8hHEXJVWw5KBYASTJqt6LTiMlQOClUCwy2pzgS+3wjzciaom5qdHkEIKihm LbFZeu3GUX2rQrw95vMUAwHwLMhQvr9BXw5t8DgS18wjDl1kzInwFsGj2SPMKChg/bym Tmcu3EXMqgMrQNmvkJz9fsVG75BpP3Yjo0p+gjidyLIOwZJa6odh+Rsvj5/dkLNGi6Qb f1wvqxLlxY7srtMxiMU8lGoEMoHZQ6btJvkJNg/7NEjgIOAm1aD0gs1r4X9a5McEXcCI m7ctUg1UcyfSV1wZw3dx7qJQf1TJyB6/6YI0/SPkhtaSXdeuzE6ItrcE3jyBjwq+PTtr 9M7w== X-Gm-Message-State: AFeK/H3MI0sJbVGyfBZ2yuJwEJ1+kpHwk9+52X6nfEgirK/rUt5XHnH6EmDETMH1a23VYsJFH/sAj12PMlorxg== X-Received: by 10.157.12.40 with SMTP id 37mr1351014otr.92.1490821304964; Wed, 29 Mar 2017 14:01:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.110.40 with HTTP; Wed, 29 Mar 2017 14:01:24 -0700 (PDT) From: Sushil Adhikari Date: Wed, 29 Mar 2017 16:01:24 -0500 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Crafting dpdk packet in secondary application and sending them from primary application, multi-process, dpdk X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2017 21:01:46 -0000 I have two dpdk application one primary with "--proc-type=primary" which does kni packet forwarding(as in kni example application) and a secondary application with "--proc-type=secondary" whose job is to craft dpdk packets from raw data and forward them through the memory(buffer) set up in primary application. I'm having problem allocating mbuf for packet crafting in secondary application. To get mbuf what I did was (in secondary application) struct rte_mbuf *buffer = rte_pktmbuf_alloc(rte_mempool_lookup("mempool_name")); but this doesnt give me rte_mbuf rather it hangs the program, this probably is because I can't allocate memory (rte_mbuf*) in secondary application from mempool created by primary application. How can I craft packet on secondary application and how can I send them through the kni interface created in primary application. I would appreciate any help or suggestions. Thank you Sushil