From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id AC4C8B393 for ; Fri, 11 Jul 2014 15:26:24 +0200 (CEST) Received: by mail-wg0-f41.google.com with SMTP id z12so1052431wgg.12 for ; Fri, 11 Jul 2014 06:26:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=QdI+NfKKdYFgq0JSdzdrmjSIfSloWP3iGSjhr8RUD/M=; b=QplGP/cXtoy9TAiKn3cp11vXpcIYHHC96vaG0bjX7vs4p2ET61zfweVYo8OZeVTQZd 1cYOZebGs7Bwu0DplIICtQ0HPMezfVtxtXuDV0VssTpbwwp364AWewAACipxy80pOR3V QA5yScshYoo9iMtbtpt/h2IozDo0zDoCoANqjjCDcZEpUK7zDpyt63Mzd6KEe3zETOMf +MpwzBI4j7ESPIxSY+gz9VQ+8AAXhaKU/8ieGEo59GndozMKiRQ/QTJxS3M7+1h/odR5 MPevkFcyE9M1ztUF7vLqc0lYwv4W7ky5v0x8uWc2qd7wQSSDUPmU+6uPwyjpVoWXtEar UP4A== X-Gm-Message-State: ALoCoQkj6WIjzpwibcuKFIZQFKPZUhLh84TZu1F+2bbzK6jSOkaxL6WrhVpMgy6saGGKCawHvxzm X-Received: by 10.180.10.138 with SMTP id i10mr4793947wib.81.1405085209061; Fri, 11 Jul 2014 06:26:49 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id fc7sm5185105wjc.37.2014.07.11.06.26.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jul 2014 06:26:48 -0700 (PDT) From: Thomas Monjalon To: "John W. Linville" Date: Fri, 11 Jul 2014 15:26:39 +0200 Message-ID: <140509179.juH2PgJsn9@xps13> Organization: 6WIND User-Agent: KMail/4.13.1 (Linux/3.14.6-1-ARCH; KDE/4.13.1; x86_64; ; ) In-Reply-To: <1405024369-30058-1-git-send-email-linville@tuxdriver.com> References: <1405024369-30058-1-git-send-email-linville@tuxdriver.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] librte_pmd_packet: add PMD for AF_PACKET-based virtual devices 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: Fri, 11 Jul 2014 13:26:24 -0000 2014-07-10 16:32, John W. Linville: > This is a Linux-specific virtual PMD driver backed by an AF_PACKET > socket. This implementation uses mmap'ed ring buffers to limit copying > and user/kernel transitions. The PACKET_FANOUT_HASH behavior of > AF_PACKET is used for frame reception. In the current implementation, > Tx and Rx queues are always paired, and therefore are always equal > in number -- changing this would be a Simple Matter Of Programming. > > Interfaces of this type are created with a command line option like > "--vdev=eth_packet0,iface=...". There are a number of options availabe > as arguments: > > - Interface is chosen by "iface" (required) > - Number of queue pairs set by "qpairs" (optional, default: 16) > - AF_PACKET MMAP block size set by "blocksz" (optional, default: 4096) > - AF_PACKET MMAP frame size set by "framesz" (optional, default: 2048) > - AF_PACKET MMAP frame count set by "framecnt" (optional, default: 512) > > Signed-off-by: John W. Linville > --- > This PMD is intended to provide a means for using DPDK on a broad > range of hardware without hardware-specific PMDs and (hopefully) > with better performance than what PCAP offers in Linux. This might > be useful as a development platform for DPDK applications when > DPDK-supported hardware is expensive or unavailable. Thank you for this nice work. I think it would be well suited to host this PMD as an external one in order to make it work also with DPDK 1.7.0. -- Thomas