From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83AFB1BDEC for ; Sat, 11 Nov 2023 19:07:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D4i8YqiV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34486C433C8; Sat, 11 Nov 2023 19:07:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699729664; bh=KTspa5oUzWnS3bLUzEkJoayWGXdX0hxAUXytoJACcz0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D4i8YqiVwD+gxoJGd1mdGluEL3nEGJ0CeVUtZB4Zuol69jffGREmsWK2n97siXgLI joILWGdG2stayiQwqp6/ds+3+dRHw7E9Vj5UhGN1cKJmivNRpf6VjAeVnMuh5ii+lZ 0+ylvB4ccee8tuA1/hn0oTeAL5EOMGZd+NsR+C+wKmY3GbdQdmoEVfYGHTYzUYhGQ8 pSqN5govnirGtTlVPaUXBcitt+fIdkHXZAuVnbIA54bCUC16vbpYFSh9NWgq+cDTOT cXjCAFWU4VCH7Tq9EON+vy01OitMgMF7+lfgbyx3lSRtoC8f89DW3TT6s6/bU8nWL8 8h6y0slLWl8QA== Date: Sat, 11 Nov 2023 19:07:33 +0000 From: Simon Horman To: Hangbin Liu Cc: netdev@vger.kernel.org, "David S . Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Ido Schimmel , Nikolay Aleksandrov , Roopa Prabhu , Stephen Hemminger , Florian Westphal , Andrew Lunn , Florian Fainelli , Vladimir Oltean , Jiri Pirko Subject: Re: [RFC PATCHv3 net-next 04/10] docs: bridge: Add kAPI/uAPI fields Message-ID: <20231111190733.GD705326@kernel.org> References: <20231110101548.1900519-1-liuhangbin@gmail.com> <20231110101548.1900519-5-liuhangbin@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231110101548.1900519-5-liuhangbin@gmail.com> On Fri, Nov 10, 2023 at 06:15:41PM +0800, Hangbin Liu wrote: > The current bridge kernel doc is too old. It only pointed to the > linuxfoundation wiki page which lacks of the new features. > > Here let's start the new bridge document and put all the bridge info > so new developers and users could catch up the last bridge status soon. > > First add kAPI/uAPI and FAQ fields. These 2 fileds are only examples and > more APIs need to be added in future. > > Signed-off-by: Hangbin Liu > --- > Documentation/networking/bridge.rst | 83 +++++++++++++++++++++++++---- > 1 file changed, 73 insertions(+), 10 deletions(-) > > diff --git a/Documentation/networking/bridge.rst b/Documentation/networking/bridge.rst > index c859f3c1636e..d06c51960f45 100644 > --- a/Documentation/networking/bridge.rst > +++ b/Documentation/networking/bridge.rst > @@ -4,18 +4,81 @@ > Ethernet Bridging > ================= > > -In order to use the Ethernet bridging functionality, you'll need the > -userspace tools. > +Introduction > +============ > > -Documentation for Linux bridging is on: > - https://wiki.linuxfoundation.org/networking/bridge > +A bridge is a way to connect multiple Ethernet segments together in a protocol > +independent way. Packets are forwarded based on Layer 2 destination Ethernet > +address, rather than IP address (like a router). Since forwarding is done > +at Layer 2, all Layer 3 protocols can pass through a bridge transparently. > > -The bridge-utilities are maintained at: > - git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git > +Bridge kAPI > +=========== > > -Additionally, the iproute2 utilities can be used to configure > -bridge devices. > +Here are some core structures of bridge code. > > -If you still have questions, don't hesitate to post to the mailing list > -(more info https://lists.linux-foundation.org/mailman/listinfo/bridge). > +.. kernel-doc:: net/bridge/br_private.h nit: Building htmldocs reports: ./net/bridge/br_private.h:240: warning: Function parameter or member 'tnode' not described in 'net_bridge_vlan' ./net/bridge/br_private.h:240: warning: Function parameter or member 'tinfo' not described in 'net_bridge_vlan' ...