From owner-freebsd-net@FreeBSD.ORG Wed Mar 25 13:57:49 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 04472259 for ; Wed, 25 Mar 2015 13:57:49 +0000 (UTC) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (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 8FDD07EC for ; Wed, 25 Mar 2015 13:57:48 +0000 (UTC) Received: by wixw10 with SMTP id w10so39977337wix.0 for ; Wed, 25 Mar 2015 06:57:47 -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 :content-type:content-transfer-encoding; bh=HzaxGD2jNlx6bvXkD/fE6vk2aHujZdvfK4WIp4AnbAo=; b=cRsUD+iWkZWCWb4DusEzNjEFrATw32viddlz+NCm2CCkBO3044cu/L8uLMwTru9C0M w3tX16M+oeV2WMAPOLPJqUlRDKNrr/oUDmSsniRptVnJ1HkHKA6cAS1UqbxkM7edQZrx aE52E+Lf6Tfwbs2EOlD20GF64aWaqNUjOSqFpkjKf3m8GXXHos9TXdnKg4ePF5DnmyEm KBCWYW0XCg/fXBvmV+wMSVosbYlNk783A4ygjTc9NVts/DQwqQWk8VnJwOAtVuaIg7RB dNyY66mEMNYBgQW8GULV71dVjPlZABD5FcQqte5TGv+MzOmq799Uu0gp25fJW7QSWmhw SUmw== X-Received: by 10.194.8.99 with SMTP id q3mr18898095wja.88.1427291866705; Wed, 25 Mar 2015 06:57:46 -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 v8sm20745374wib.0.2015.03.25.06.57.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Mar 2015 06:57:46 -0700 (PDT) Message-ID: <5512BED2.2060509@gmail.com> Date: Wed, 25 Mar 2015 13:57:38 +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: Equivalnet options between pf_ring and netmap Content-Type: text/plain; charset=windows-1252; 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 13:57:49 -0000 Hi all, I am trying to configure some values in netmap under a FreeBSD 10.1 host like it can be done with pf_ring in linux. According to netmap(4) manual page exists some options using sysctl. But I am searching about these options: enable_tx_capture and min_num_slots like in pf_ring. Exists some equivalence in netmap? Is it posible to disable TX? dmesg output: root@bsdhst03:~ # dmesg | grep netmap netmap: loaded module 001.000007 [ 427] vtnet_netmap_attach max rings 1 001.000008 [2705] netmap_attach success for vtnet0 tx 1/1024 rx 1/1024 queues/slots 001.000009 [ 432] vtnet_netmap_attach virtio attached txq=1, txd=1024 rxq=1, rxd=1024 001.000010 [ 427] vtnet_netmap_attach max rings 1 001.000011 [2705] netmap_attach success for vtnet1 tx 1/1024 rx 1/1024 queues/slots 001.000012 [ 432] vtnet_netmap_attach virtio attached txq=1, txd=1024 rxq=1, rxd=1024 001.000013 [ 427] vtnet_netmap_attach max rings 1 001.000014 [2705] netmap_attach success for vtnet2 tx 1/1024 rx 1/1024 queues/slots 001.000015 [ 432] vtnet_netmap_attach virtio attached txq=1, txd=1024 rxq=1, rxd=1024 001.000016 [ 427] vtnet_netmap_attach max rings 1 001.000017 [2705] netmap_attach success for vtnet3 tx 1/1024 rx 1/1024 queues/slots 001.000018 [ 432] vtnet_netmap_attach virtio attached txq=1, txd=1024 rxq=1, rxd=1024