From owner-freebsd-net@freebsd.org Wed Jan 4 01:19:08 2017 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 EF137C9D4FF for ; Wed, 4 Jan 2017 01:19:08 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from mail-ua0-x22a.google.com (mail-ua0-x22a.google.com [IPv6:2607:f8b0:400c:c08::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 AA91A1861; Wed, 4 Jan 2017 01:19:08 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by mail-ua0-x22a.google.com with SMTP id y9so7339196uae.2; Tue, 03 Jan 2017 17:19:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=OKbTxPeqpU/4C6A2zc62VeaVVB8j41JKHqBC/l27mvQ=; b=VC/GrYzzNAZeQ+5VNBEiDBsldhJ//dTDrWB7RUrBhNd/MkAASUBz2RjVcAa3TwuHHD MxS63us6kosMUTzuuZgc56Cp9MSOH3YMHDOHAID52y55W+nkanrydkGn82+jaidRr8Fb jn7GMt/aZLoF4IyLt5ArxpaFvNCxVIMoYK58KHZ4/bbqZs2POMtbrO5O1tAntbVIggBO dgnAX+S45XSuXh82xO4tD+pUabHjsSddLcqq9wlPmKQhJdGQfsDKzbonyrqmYle1H/zK N/jszJ2FEOU3hlXTvCOiiF2ZpAflPoIkzDyAFSZnuZ2McAedfEMgWC71zoWjLPpL4Oh9 pWSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=OKbTxPeqpU/4C6A2zc62VeaVVB8j41JKHqBC/l27mvQ=; b=ZmB0krdx+UQeCRU121No0ldWXE5dA2HVlGTDfZEBuMhwBPPpeaBKMPir1JdzCnpCbg gI42eGq1pKCNjg8ovliEtHR8IrA06LvuQt1d6sk7SAbL6EYR3SKqRy0k/1HXdZypm/aH s4goirzwKlE0xCLAaD1IknC44S2ltd3ZuF9nczdGfasrq+pHp2OvMS/uC5Z/LjFAVNJo T1fRVrRtD5ulvcb6k2XqPO2B+xelfqVrQAYY1Kg0d0DGYflBrUVNzWPSmutL0de9axXw pIqFn0u4oYFF9HoXseONh1sLckFwfMLZdUzqxG/RcplHzbafG120NthR6pcD3mJOqRhm ssZg== X-Gm-Message-State: AIkVDXIrazYhnGXmSEMh1lqOp5r19p2caytMTNFVkMCPvOadvEdCo6SIdAajJyN21fH6y4HqnES8zwLGfn9CEw== X-Received: by 10.176.88.65 with SMTP id p1mr49000021uac.175.1483492747708; Tue, 03 Jan 2017 17:19:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.2.86 with HTTP; Tue, 3 Jan 2017 17:19:07 -0800 (PST) In-Reply-To: References: From: Sepherosa Ziehau Date: Wed, 4 Jan 2017 09:19:07 +0800 Message-ID: Subject: Re: Changing NIC ring weight in indirection table To: David Belle-Isle Cc: "freebsd-net@freebsd.org" , Adrian Chadd Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 04 Jan 2017 01:19:09 -0000 On Fri, Dec 30, 2016 at 11:34 PM, David Belle-Isle wrote: > Hi, > > Can anyone tell me how to set the weight of a ring from the indirection > table on FreeBSD? My plan is to yank out a TX ring and to use it solely > with netmap to receive packets but want to make sure the kernel won't be > receiving any packets on this ring. TX side is not related to the RSS's indirect table at all. I believe you need to modify the drivers you are using. > > Based on a quick search this is something that ethtool would be able to do > on Linux but I doubt this can be done on FreeBSD using the same tool? adrian@ has proposed something in this area, RSS key and RSS indirect table, though not much happens yet. I have implemented the indirect table changes through a driver specific sysctl for hn(4), you probably could do the same for the drivers that you are using. But again, you will have to change the code. Thanks, sephe