From owner-freebsd-net@FreeBSD.ORG Wed Mar 25 14:14:15 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8DA78C35 for ; Wed, 25 Mar 2015 14:14:15 +0000 (UTC) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1B692A42 for ; Wed, 25 Mar 2015 14:14:15 +0000 (UTC) Received: by wibbg6 with SMTP id bg6so25736918wib.0 for ; Wed, 25 Mar 2015 07:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=+ccHZ2ImBBvEaYPFdhalbx/DdYXkhxaFV324N9RAblI=; b=bYh2yi7s5SiQncu8EtibiJ6CWiP/J9umQemq4xScDK/dSv0BEG0ZH6b98NtlY/Fh9P 1BK8q98Khoua8AkpXgXiQIyL9QWk31BLcek7JIW6bztk1NzjbYw3RKcb34OvBcWwAzuL RHAKona+b5rwxwUPy5brhY12AfihFcvLTo8fqfg939tBtCI8eDxR7Vo/qpat9F2C3eJM ZojVXKT+hUiFSXvOOICJq2cyxvLff4bKhs2OBT6ZIZU0MmL4+4EBt5e6oOx8pT3g/nE2 3RGxEmDvxESAOaA6/vVvmNhfCfIdLNG4pIIPcNBnN6wDg3XwOUg2ukwBjCUI8uswyI9W unVA== X-Received: by 10.194.91.129 with SMTP id ce1mr18672022wjb.53.1427292848604; Wed, 25 Mar 2015 07:14:08 -0700 (PDT) Received: from inverness.bcn.sia.es (114.Red-80-35-188.staticIP.rima-tde.net. [80.35.188.114]) by mx.google.com with ESMTPSA id n6sm3925112wjy.8.2015.03.25.07.14.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Mar 2015 07:14:08 -0700 (PDT) Message-ID: <5512C2AF.6050300@gmail.com> Date: Wed, 25 Mar 2015 14:14:07 +0000 From: "C.L. Martinez" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Re: Equivalnet options between pf_ring and netmap References: <5512BED2.2060509@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2015 14:14:15 -0000 On 03/25/2015 02:03 PM, Luigi Rizzo wrote: > perhaps it is easier to tell if you explain what those pf_ring options do. > i am puzzled by the question on disabling tx, because if you do not > want to transmit, you just... don't! Ok, I will try to explain it ... I am doing some tests with this FreeBSD kvm guest to act as a IDS. After changing some kernel network related options like net.inet.tcp.recvspace, net.inet.tcp.sendspace, net.inet.tcp.sendbuf_max, etc ... I am loosing too much packets ... Yes I know it: due to I am using this freebsd host as a virtualized guest I can't expect really good results ... but I have another linux virtualized host using pf_ring, and I don't lose too much packets. The main difference is that in the linux server I configured "enable_tx_capture=0" and "min_num_slots=65535" in pf_ring's module. For this reason, I am thinking if it is possible to accomplish same or similar type of configuration in netmap ...