From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) by dpdk.org (Postfix) with ESMTP id BA79A156 for ; Tue, 12 Nov 2013 09:18:08 +0100 (CET) Received: by mail-lb0-f169.google.com with SMTP id q8so1820645lbi.14 for ; Tue, 12 Nov 2013 00:19:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=S1whDVwBzZb0SuGXWUbHMAqAYnKo6zcvH6G+F+QEOVw=; b=AK9H+4goGwNf3Rw8AZJR0xXbRMLriYKwO/RSwxdir96M8lqil9uGz98ZYkpWXrcsGv uphrpnyWPBEXBbCKID8DPfYciKhqWiaigQADg3767LDq6uiJo/Wyw3o6aX96nU10WLbd Kc5q+L1zBCpiLMIzOD/5TeEu6Nx2BMH4E+2VD5vnwAKHtof4jA4BI2L2L+NY7nkjnWZC 4TRGFtdqAq6eJfjZxiSMwhnuche9rZ88qN0cOI/WWuIQsEFK4kX8yTzu3lkgUasY4bZi lrHE1XF2Mu7FjqLYXz8M09crByU7eQyohEA5zWC4KrDdVh5LG9OCU7J36Rw3p+ovAN4K lzzA== MIME-Version: 1.0 X-Received: by 10.112.29.147 with SMTP id k19mr25728645lbh.9.1384244343525; Tue, 12 Nov 2013 00:19:03 -0800 (PST) Received: by 10.114.181.144 with HTTP; Tue, 12 Nov 2013 00:19:03 -0800 (PST) Date: Tue, 12 Nov 2013 16:19:03 +0800 Message-ID: From: Jose Gavine Cueto To: "dev@dpdk.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] raw frame to rte_mbuf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Nov 2013 08:18:09 -0000 Hi, In DPDK how should a raw ethernet frame converted to rte_mbuf * ? For example if I have an ARP packet: void * arp_pkt how should this be converted to an rte_mbuf * for transmission, does a simple cast suffice ? Cheers, Pepe -- To stop learning is like to stop loving.