From owner-freebsd-net@FreeBSD.ORG Mon Nov 3 17:32:01 2014 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 AE610EBA for ; Mon, 3 Nov 2014 17:32:01 +0000 (UTC) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B96EF4F for ; Mon, 3 Nov 2014 17:32:01 +0000 (UTC) Received: by mail-ig0-f173.google.com with SMTP id r10so5085665igi.12 for ; Mon, 03 Nov 2014 09:32:01 -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=IiZnsjxdWY+HLTP3CsJhcmchNk8UnE4dzbLx3j8gllk=; b=yqDIgG7feBcexByyHrZiU3NnhBUfvUo1mtHQsp2OLlwtpAq4yV3QnNem7K2BhtLlCV 7iT4Coa4FG90OB/iv35YMwHDMMFXzO9hoE1JTPTLVh2xYaDf+9STdFzgGkYTt41Xzbwm 8IQfAzomw6XTC8UQmJpiixKXk0JBbuLQkQ8LNZpxj8t2Jrl3qLZ+8exu0q+8Ro26VUCS ceXnoauc4si25ooDa3EPFeJlDE+PvGU+xEfoKcYPUcbtYZYZpNuqg3LwZSjWW1tu85z5 JJLy9wwg7CrwyG/vz3fcrCaHMhLgesqb+jqh58JeRy9e3NVZtt9UDxlCS60PHOLoXQCy mS0w== MIME-Version: 1.0 X-Received: by 10.42.136.133 with SMTP id u5mr34244200ict.33.1415035920959; Mon, 03 Nov 2014 09:32:00 -0800 (PST) Received: by 10.107.8.194 with HTTP; Mon, 3 Nov 2014 09:32:00 -0800 (PST) Date: Mon, 3 Nov 2014 11:32:00 -0600 Message-ID: Subject: How do I poll() over just one ring on netmap? From: David To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Mon, 03 Nov 2014 17:32:01 -0000 hi, I've been working with netmap with great results. My problem now is that I haven't figure out how to poll on just one TX ring to check for space available. I have several tx ring connected. I've been working with the pkt-gen example and I found a call to poll(), but when I step into the code that handles that I notice it is going over all the available rings, regardless I just want to send using one. How do I poll() over just one ring? Thanks --=20 David D=C3=ADaz Barquero Ingenier=C3=ADa en Computadores Tecnol=C3=B3gico de Costa Rica