From owner-svn-src-head@FreeBSD.ORG Thu Nov 21 00:07:09 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 67CBCE2D; Thu, 21 Nov 2013 00:07:09 +0000 (UTC) Received: from mail-qe0-x235.google.com (mail-qe0-x235.google.com [IPv6:2607:f8b0:400d:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C7EDF236D; Thu, 21 Nov 2013 00:07:08 +0000 (UTC) Received: by mail-qe0-f53.google.com with SMTP id cy11so6858980qeb.12 for ; Wed, 20 Nov 2013 16:07:07 -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=KajDMffiIXncp1WKPF9oXTEogDIzTZoJnsZewsmr2v8=; b=bb5uCOqzwFDPLeDtWrLPQHTspQiCQw/FjzDGq5dn2zznM8FsTnKl3FJ07qJtLqm3rp LdBs86y1eJy/W/dqUUskphKO8PC474dmlUkIX18/qZBCwxjes6SLZ6kD6pDvGgy/h5bI dYHKtz2iy1z+5n473RgGIkMOHnG1V47UcdKnS30VRYU3CvvdK17JzY472PAwazvv4eWc +UdSxZ4R9tlbgJaky1FNSfTW5XkBKWsoxWRmFAnvbQPe3Ug5fBZs1S37ugy80BjRPd60 B0eAUBElEVAaEEwafM5IAh2qOplByAReAvVzbD7QjT5KFbjcJc8y9iK+C1IRVHBkFhLO uD6A== MIME-Version: 1.0 X-Received: by 10.224.12.10 with SMTP id v10mr6394090qav.98.1384992427830; Wed, 20 Nov 2013 16:07:07 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Wed, 20 Nov 2013 16:07:07 -0800 (PST) In-Reply-To: <20131121000245.GA30549@onelab2.iet.unipi.it> References: <201311182258.rAIMwEFd048783@svn.freebsd.org> <023E719B-1059-4670-8556-EBAC18A2F007@freebsd.org> <20131121000245.GA30549@onelab2.iet.unipi.it> Date: Wed, 20 Nov 2013 16:07:07 -0800 X-Google-Sender-Auth: WL_16bDMg3EIC-et8hOOltYtOIc Message-ID: Subject: Re: svn commit: r258328 - head/sys/net From: Adrian Chadd To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Cc: "src-committers@freebsd.org" , FreeBSD Net , "svn-src-all@freebsd.org" , George Neville-Neil , "freebsd-arch@freebsd.org" , "svn-src-head@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Nov 2013 00:07:09 -0000 Hi, We should migrate drivers to use a multi-input method where it's appropriate. It's the same pain as if_transmit() is/was. I'd really like to avoid having hacky solutions like mbufs with magic types. If we're going down that path, we should create a correct inline messaging mechanism that includes arbitrary messages in the stream, where some may or may not be mbufs. Magic mbufs just makes me want to tear out my eyes a little. So, the reason I'd like to back it out is because we should be doing it via a multi method with some type that represents an mbuf list. If George doesn't mind, I'll add a multi input method, move this stuff into it, and make ether_input just be single frames. -adrian