From: Benjamin LaHaise <bcrl@kvack.org>
To: "Arad, Ronen" <ronen.arad@intel.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>,
Roopa Prabhu <roopa@cumulusnetworks.com>,
Jiri Pirko <jiri@resnulli.us>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"sfeldma@gmail.com" <sfeldma@gmail.com>,
"tgraf@suug.ch" <tgraf@suug.ch>,
"john.fastabend@gmail.com" <john.fastabend@gmail.com>,
"stephen@networkplumber.org" <stephen@networkplumber.org>,
"linville@tuxdriver.com" <linville@tuxdriver.com>,
"vyasevic@redhat.com" <vyasevic@redhat.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"shm@cumulusnetworks.com" <shm@cumulusnetworks.com>,
"gospo@cumulusnetworks.com" <gospo@cumulusnetworks.com>
Subject: Re: [PATCH net-next v2 2/4] swdevice: add new api to set and del bridge port attributes
Date: Mon, 15 Dec 2014 12:57:00 -0500 [thread overview]
Message-ID: <20141215175700.GC6942@kvack.org> (raw)
In-Reply-To: <E4CD12F19ABA0C4D8729E087A761DC3505D999EA@ORSMSX106.amr.corp.intel.com>
On Mon, Dec 15, 2014 at 05:25:00PM +0000, Arad, Ronen wrote:
> > Ben's patches (and I am sure the cumulus folk do this) expose ports.
> > i.e you boot up the hardware and you see ports. You can then put these
> > ports in a bridge and you can offload fdbs and do other parametrization to
> > the ASIC. IOW, this only becomes a bridge because you created one in the
> > kernel and attached bridge ports to it.
> >
> > Lets say i didnt want a bridge. I want instead to take these exposed ports and
> > create a bond (and maybe play with LACP). How does this propagation from
> > parent->child->child work then? I think the idea of just bonding and not
> > exposing it as a switch is a reasonable use case.
>
> Are you saying that the software should reflect the same functionality the HW provides?
> In other words is creating a bridge device mandatory for supporting standard VLAN-bridging (as in IEEE 802.1Q) in the HW?
Re-using the existing Linux APIs for bridging is the approach I've taken
with the rtl8366s driver I've been working on. It makes no sense to create
entirely new APIs for these operations.
> VLAN-bridging including port VLAN membership, VLAN filtering, PVID, Egress un-tagging could be supported without an explicit bridge device when port devices implement bridge ndos (ndo_bridge_{set,del,get}link). What is lost is the ability to have common handling of VLAN-aware FDB in the bridge module.
> Do we expect switch port devices to support L2 functionality both ways (with and without an explicit bridge device)?
I've already got egress untagging working if the VLANs are configured using
vconfig and added to a bridge. The lack of this functionality in the "new"
API for bridging VLANs is a huge complaint I have about the new bridge
configuration API. I feel that API change was a step backwards in terms
of functionality. It also conflates the different FDBs for different VLANs
into the same hash table, again, something i find rather messy compared to
the 1 FDB to 1 bridge state the bridge device was in originally.
-ben
> Will the decision about using a bridge device or avoiding it be left to the end-user?
> (This requires switch port drivers to be able to work and provide similar functionality in both setups).
> I think that we need to outline the handling of L3 as it could determine or at least impact some of the answers to my above questions.
>
> cheers,
> ronen
>
> > Also how does it work when i start doing L3 and the bond's port doesnt
> > support L3? Is it time to revive the thing we called TheThing in Du?
> >
> > cheers,
> > jamal
> >
> > On 12/14/14 14:41, Roopa Prabhu wrote:
> > > On 12/14/14, 7:35 AM, Jiri Pirko wrote:
> >
> > [..chopped off for brevity and saving electrons..]
> >
> > cheers,
> > jamal
> > --
> > To unsubscribe from this list: send the line "unsubscribe netdev" in the body
> > of a message to majordomo@vger.kernel.org More majordomo info at
> > http://vger.kernel.org/majordomo-info.html
--
"Thought is the essence of where you are now."
next prev parent reply other threads:[~2014-12-15 17:57 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-10 9:05 [PATCH net-next v2 2/4] swdevice: add new api to set and del bridge port attributes roopa
2014-12-10 9:37 ` Jiri Pirko
2014-12-11 16:52 ` Roopa Prabhu
2014-12-11 17:11 ` Jiri Pirko
2014-12-11 17:59 ` Roopa Prabhu
2014-12-11 18:07 ` Jiri Pirko
2014-12-11 18:27 ` Roopa Prabhu
2014-12-11 22:25 ` Jiri Pirko
2014-12-14 14:13 ` Roopa Prabhu
2014-12-14 15:35 ` Jiri Pirko
2014-12-14 19:41 ` Roopa Prabhu
2014-12-15 15:26 ` Jamal Hadi Salim
2014-12-15 17:20 ` Roopa Prabhu
2014-12-15 18:03 ` Benjamin LaHaise
2014-12-15 17:25 ` Arad, Ronen
2014-12-15 17:57 ` Benjamin LaHaise [this message]
2014-12-15 17:57 ` John Fastabend
2014-12-15 18:36 ` Arad, Ronen
2014-12-15 23:27 ` Jamal Hadi Salim
2014-12-16 0:58 ` Arad, Ronen
2014-12-16 1:20 ` Roopa Prabhu
2014-12-16 11:01 ` Arad, Ronen
2014-12-16 15:54 ` Samudrala, Sridhar
2014-12-16 16:41 ` John Fastabend
2014-12-16 17:29 ` Arad, Ronen
2014-12-16 19:23 ` B Viswanath
2014-12-16 20:52 ` Arad, Ronen
2014-12-16 21:51 ` B Viswanath
2014-12-16 22:46 ` Arad, Ronen
2014-12-16 19:25 ` Roopa Prabhu
2014-12-16 19:20 ` Roopa Prabhu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141215175700.GC6942@kvack.org \
--to=bcrl@kvack.org \
--cc=davem@davemloft.net \
--cc=gospo@cumulusnetworks.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=john.fastabend@gmail.com \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
--cc=ronen.arad@intel.com \
--cc=roopa@cumulusnetworks.com \
--cc=sfeldma@gmail.com \
--cc=shm@cumulusnetworks.com \
--cc=stephen@networkplumber.org \
--cc=tgraf@suug.ch \
--cc=vyasevic@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).