From owner-freebsd-net@freebsd.org Sat Jan 23 19:38:12 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58EEDA8F04E for ; Sat, 23 Jan 2016 19:38:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com [IPv6:2607:f8b0:4001: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 19F4918DC for ; Sat, 23 Jan 2016 19:38:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x22a.google.com with SMTP id z14so11924446igp.0 for ; Sat, 23 Jan 2016 11:38:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=hhG8uEnElMrnkHsSEj2vrOdUNqJeK5Dzg+dWmZkLPJ8=; b=vtwu/r6OcRimPIUTu5ku2l2i0E95qpuRl+8Mc+QKgLI445ZF6zr0d4Z0OoxDaXprjZ UqUUj/bHmRvkfltx8A6Ph8OeLanfW+s36AF2XvXUbTFrdrH3wULOTER2ffnAWGj29mKX 9MUwolqkNvRLvJ5+JwLuQTv/FvczkV9xsCzR6kiLkY/zlLMCpprCAalHNKyWuRJuUDsJ aujBnzAqqT+E+MGth9uMmmOflqqteCIB8LTII1PU/IaaiODeyArlXZ3G/UUEDq9RAoTX 1/HTTTjmFaj0k01s0HFVoZriKG9CyTAXhoVE+LUXOyKvwDUu1LJnRZRC3cSv0Ht/J2Pl NAFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=hhG8uEnElMrnkHsSEj2vrOdUNqJeK5Dzg+dWmZkLPJ8=; b=OeiOpndyC5E7zh9XCrNT7IxmyWwP8ZF/cn980f4U/TlSS+AqObgfxRPrgTlJ4khL31 XA0lc6NQVbKNz0xjbILP+MQSzCp12KKn05ZHcx5qJN2GUfGylmbUhVFrWr74n/THXuHo AMKHxaw7Fg6Gjvrxl2giH69bSP1JnKMIaA0zXNHfsCwDoouXQ1OmbAwprvhhe0XYwSne 1XlzY1W8mYzr/1W7NH7UhgkkIyN8yOBuSs9L/vChXyRNQmpAlFmcYZxKtVns4wG+SArQ rytvCwsXgwgSdh+wVrhj7I8HblP0NxovynybsOyO0ySr/xD50LDssZLlGIsmJN9CTIAt 2iVQ== X-Gm-Message-State: AG10YOQVHa/YIUpidct/m4uaAZGCa0Bkj+EkvISGki62nWtxH7jEqNCus5JbHgOB7ZPYr6no9R2V12HiHcBPbQ== MIME-Version: 1.0 X-Received: by 10.50.122.100 with SMTP id lr4mr10168415igb.37.1453577891466; Sat, 23 Jan 2016 11:38:11 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.121.16 with HTTP; Sat, 23 Jan 2016 11:38:11 -0800 (PST) In-Reply-To: References: <20160123184320.CA903A0126@smtp.hushmail.com> Date: Sat, 23 Jan 2016 11:38:11 -0800 X-Google-Sender-Auth: tqZxnVyO3-4v-xHOus7GS9z41BI Message-ID: Subject: Re: netmap design question - accessing netmap:X-n individual queues on FreeBSD From: Adrian Chadd To: Marcus Cenzatti Cc: Pavel Odintsov , FreeBSD Net , Eduardo Meyer Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2016 19:38:12 -0000 Oh and one other thing - on the cxgbe hardware, the netmap interfaces (ncxl) have a different MAC. things like broadcast traffic is duplicated to cxlX AND ncxlX. So, if you're only using netmap and you're testing promisc/bridging, you should bring /down/ the cxlX interface and leave ncxlX up - otherwise yeah, the cxbge MAC will duplicate packets in hardware, which halves the RX bandwidth available on the NIC /and/ chews CPU in FreeBSD as the normal ethernet input path drops all of those packets. (I think the same thing holds with the virtual devices via SR-IOV on ixgbe hardware, btw..) -a