From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4B5F1A04F3 for ; Fri, 3 Jan 2020 01:11:59 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 66B201C1E3; Fri, 3 Jan 2020 01:11:58 +0100 (CET) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by dpdk.org (Postfix) with ESMTP id 9524E1C1CD for ; Fri, 3 Jan 2020 01:11:57 +0100 (CET) Received: by mail-wr1-f47.google.com with SMTP id d16so40918928wre.10 for ; Thu, 02 Jan 2020 16:11:57 -0800 (PST) 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=zvKkYPzdvPRuD1En7pNb/mmEq59N2+udx/lqcaxDkvs=; b=LepbOkaM3wiwoeg7TOP6Sf0tQJJ9mHgTZJdxYfpBP0eSpcxxkMNPnz2/+3blE3AunY CXk8UBSKgglFsgo90zN3wMZlXGG9puykgCpY2Cddpe4WrSEIdsTkFybIDpnX1Wf4D9MT yp5kcgm1LHOJs7U+PizwdFUQiG5+lV7KmTPtrQpH+Dq6FMZQjc5hP4xZtBtAy83uiCz4 iuO1uDQHRoKosOOdqKPXTF0Fdojemk0JphmP+98egTxVp9yYJt3FtyhyJohncCMF25Ep UkeCOfmDJ5z6u3uFaze9qJfBqztygJa5DIw/eOdgwcgMPx8WfuxBQQvvyw1Ty/A/7sut 57AA== 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=zvKkYPzdvPRuD1En7pNb/mmEq59N2+udx/lqcaxDkvs=; b=XSw46ygzfYmFdxh8mbTaABfVFrPVymMafFrDsm+OOnxlF3s/I7wmilNEv9BB+iLDBM 3vCgdw24v/tOwszdc922yxTIvngkUINlkyEaCkxDZIOYKHePxf93r3D6AO/gzL9pFiFe 4nSZs6EQMkFFIaGY9KSTV2ELND7RD5i/uEqxxRWILywwam/Qvk9tbfD7z2HMSzdpYLkJ V5veiSdUVoLIngHXFfGe+b9ycNA5i7ywJ7sJuZK4ji7P4A3oPxXWcltUgO97oedWTqZV HvFPT4HCKFZg+O+Iqhzl5BTaEISOrpoCCG9kzMR8FkjfVawFwK+FUIoA7C/z92owf4C8 w0XA== X-Gm-Message-State: APjAAAWO4PfjNJn0pzJCbq29HmytRsPe3+GZ70rI4lvvse2J4GnAZgwz QiSBxaMqWvlC2fF0pKIkeL0Qwd/Z3DJyWH472sJEucl7294+gg== X-Google-Smtp-Source: APXvYqwOczcNkY5noerUr4lxc9xHFpTf25af4m6kHZCUQV0whc0+CPFtKFUUQTRNjoL1JdL7a6fNHVh5RrYLf69sbG0= X-Received: by 2002:a5d:480f:: with SMTP id l15mr84710787wrq.305.1578010317062; Thu, 02 Jan 2020 16:11:57 -0800 (PST) MIME-Version: 1.0 From: JeongHwan Kim Date: Fri, 3 Jan 2020 09:11:46 +0900 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] Attatching global memory pointer to mbuf and sending it to ethernet port. 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: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi, everyone I'd like to send the contents of global memory through ethernet port without memory copying to mbuf. So, I attached the pointer of global memory to mbuf's buffer address, but segfault occurs when I send it to ethernet port. I 'm using dpdk version 2019.11 and eal config with "--iova-mode=pa" option. My hw platform is NXP ls2088a. My routine is like this: int buf_len = 100; struct rte_mbuf *m = rte_pktmbuf_alloc(mbuf_pool); struct rte_mbuf_ext_shared_info *shinfo = rte_pktmbuf_ext_shinfo_init_helper(buf_addr, &buf_len, free_cb, fcb_arg); rte_pktmbuf_attach_extbuf(m, buf_addr, buf_iova, buf_len, shinfo); rte_pktmbuf_reset_headroom(m); ... and sent "m" to ethernet, the result was Thread 4 "lcore-slave-1" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xffffbdb0c910 (LWP 10614)] 0x0000aaaaaab73f58 in eth_mbuf_to_sg_fd () The buffer was created as follows : user_mz = rte_memzone_reserve_aligned("user_mz", size, rte_socket_id(), RTE_MEMZONE_1GB|RTE_MEMZONE_IOVA_CONTIG, RTE_CACHE_LINE_SIZE); buf_addr = user_mz->addr; buf_iova = user_mz->iova; Please give me a hint for this problem. Thanks in advance. Jeong-Hwa Kim.