From owner-freebsd-net@freebsd.org Mon Apr 11 21:03:09 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 8B5D2AECE48 for ; Mon, 11 Apr 2016 21:03:09 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (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 5795D1D53 for ; Mon, 11 Apr 2016 21:03:09 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: by mail-io0-x229.google.com with SMTP id u185so2505046iod.3 for ; Mon, 11 Apr 2016 14:03:09 -0700 (PDT) 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; bh=S6YDVpN59fcOgOQcboZNpCPggpKMo906ucLF7TtwrMI=; b=zJ+vAEowota0EEpM25l7o3YU0aCvo2B1VUu0/AvUJ0YH8+Gaplpo4Pzktddeh38S85 xB5pIKQEkNCDoK7X+BQw+EjsiNblrlDozMCUEp83t4LmQmXezxBGotoyZjVxfAGVCSqT snDdNKBY3u+jIMPK2XmbbQ+q7KvKCvps1OzIbr7g/NIvgyRtI/C/kHjEVdFScQDTSW7a CCAlatdKNbcRrGFSIPBjaKSTXiI0+Xj64SAzy8wsPIYj5vd5BAgyQQcZEwZcu8eUS0bG raq6d6tGtmgHCIS7ZWLF/R4YXSSkBbfKCJxvI93CCcH4ejTNuTTxm3GqX/YkWnFHtTE+ dyXw== 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; bh=S6YDVpN59fcOgOQcboZNpCPggpKMo906ucLF7TtwrMI=; b=E/rbKciLJgi5RnFnc6/XGoTyntTnwy7DLa8nHW3mk7e1svNP08wfKVwPkBbOly3d8a ghgUjPK+9nfyO7KG06j9MV+AuFUzopiy8joz/V8coKbOPV+COwNdUkWbSfGzSv8dLh23 ZifKrpqIcKq5ZDd7bKSXQFmCyxZScskhAQzwGctsDzyzLSVLTwUBJmy3/GgEn54pDB6k rYro8Rxcs66z1ckiZMTcfdTwZZVlAw0yneRKBdKADrKGoaI6pECUFCHUCWroU9DKUOiJ oEsVMfQ4sl0mSsKgflbtG2Pm3aOb8ZJshq/wD4Bnulvyf6RmE9xpZUDIIhTSNyeoDEAi bG4A== X-Gm-Message-State: AOPr4FWmvq6jdVW+WMbNjvo/KZkHsqShtXrT02nq8suyndmu+Jiov1OKzO/UsqU1C6JIiNpomUbNSqVWjqQopw== MIME-Version: 1.0 X-Received: by 10.107.7.135 with SMTP id g7mr114595ioi.81.1460408588709; Mon, 11 Apr 2016 14:03:08 -0700 (PDT) Sender: kmacybsd@gmail.com Received: by 10.107.6.166 with HTTP; Mon, 11 Apr 2016 14:03:08 -0700 (PDT) In-Reply-To: References: Date: Mon, 11 Apr 2016 14:03:08 -0700 X-Google-Sender-Auth: Rxt5VZTjisKmsiy1N9LvKke7htc Message-ID: Subject: Re: Question on sysctl tree handling From: "K. Macy" To: Jack Vogel Cc: FreeBSD Net Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.21 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, 11 Apr 2016 21:03:09 -0000 You do understand that init needs to be run every time interface settings are changed (TSO / PROMISC / CSUM/ etc)? Reallocating queues and interrupts every time is fragile (long running systems can run low on contiguous memory) and, in the common case that you're not actually changing the number, gratuitous. Cheers. -M On Fri, Apr 8, 2016 at 2:56 PM, Jack Vogel wrote: > LOL, why does it seem that as soon as I ask the answer hits me in the nose > :) > > I found the sysctl_ctx_free call, sorry for the noise.... > > Jack > > > On Fri, Apr 8, 2016 at 2:51 PM, Jack Vogel wrote: > >> >> I have a driver design where the queue/ring/irq layout is done in init >> rather >> than in attach, allowing easy reconfiguration. What I'm not sure about is >> how to handle the sysctl tree during a reinit, I don't see a procedure to >> free up things so I can restructure :( >> >> Am I missing something, any pointers or suggestions appreciated. >> >> Thanks, >> >> Jack >> >> > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"