From owner-freebsd-net@freebsd.org Thu Jan 12 04:14:32 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 3D4A3CAC1E6 for ; Thu, 12 Jan 2017 04:14:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (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 C091D1654 for ; Thu, 12 Jan 2017 04:14:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id c206so5637993wme.0 for ; Wed, 11 Jan 2017 20:14:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=uVVJPEiQS1wQom6a/TQdxJlilzcwHH9Ys9R8sJdrOjg=; b=YqJ4EldkVzGr4vlCxb5Y5g0wzjPyPUlEjxMUXpYdacLq3s+W/O55UadsIa8rBnmVmP P/uLQP6ijzbgb8pYIcdQrt6nCRx5u6BHDNt6p3Wqo9m2MKi8mZUrLx/tu8QW53Mlvrdt +9Nq3H0/wwz4r/WrOR+qiMTD1hRiWcUe9JbqwS3mEag67RopS2Fxw9FzcHbkvSdkzNn9 O6LQjYC/LiyOovXQzSTNrAE+TLp/YSD4NdLdI1YGPfTNOOH2UqDNL7gOaMqmM6dssrby XiXpL9Rzs3u63NqR5FslgG5SpUGHGMgfxPzl7dJjeFzU/po+LLxuDvkgFPXjgqKuGJgr mfSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=uVVJPEiQS1wQom6a/TQdxJlilzcwHH9Ys9R8sJdrOjg=; b=lp5kTTYHtST6pzw2+bS9HgX5yAsSX37Tp9ElhwOvq67LvtdlmNjJrn2YTnJMmJ/1+/ MkUEagXVf73XhwOuw73ehRaBYC75U8KK/VlF7xYLGzfauPM+JT9tOepEoVPpW68mFOSP DzYjijCScnRctYrx4wuDGSqw7cHu3Sn+XcDFZF+XVQKREA9k81OfiACet11UXRz09Wq3 E0rPSgmWvjaxqrMN1mvYG9jPrZn4tNHi7n0njgoEEUIv8dpcvVbhv+gZ9EhR+ZXT91Gs kqYpKhTuNvcnFd/mFk4Dj4XzU6dwiPMR8NPS2+I1oUWi40EvaOIC5Ccv/I0RYuL+Y3ny b0iw== X-Gm-Message-State: AIkVDXLwyzGEnsGdpjOEBcPjrCl0LrH/AOkJ3CGlrMKF08rNgQfHku0RClw7+PXdfMrJ5Msmuzqu54ArMHF9vQ== X-Received: by 10.223.173.181 with SMTP id w50mr5560109wrc.177.1484194469104; Wed, 11 Jan 2017 20:14:29 -0800 (PST) MIME-Version: 1.0 Sender: adrian.chadd@gmail.com Received: by 10.194.82.162 with HTTP; Wed, 11 Jan 2017 20:14:27 -0800 (PST) In-Reply-To: References: From: Adrian Chadd Date: Wed, 11 Jan 2017 20:14:27 -0800 X-Google-Sender-Auth: K2NWmqpqjOtNMzPspJ0iYvv2SdQ Message-ID: Subject: Re: Changing NIC ring weight in indirection table To: Sepherosa Ziehau Cc: David Belle-Isle , "freebsd-net@freebsd.org" 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: Thu, 12 Jan 2017 04:14:32 -0000 yeah, adrian is currently busy doing non-paid wifi work, so getting onto non-paid RSS configuration work is taking a backburner. Patches gratefully accepted though! -a On 3 January 2017 at 17:19, Sepherosa Ziehau wrote: > 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