All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mugunthan V N <mugunthanvnm@ti.com>
To: Yegor Yefremov <yegorslists@googlemail.com>,
	David Miller <davem@davemloft.net>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: [net PATCH 1/1] drivers: net: cpsw: Add default vlan for dual emac case also
Date: Wed, 16 Apr 2014 11:27:38 +0530	[thread overview]
Message-ID: <534E1BD2.5050809@ti.com> (raw)
In-Reply-To: <CAGm1_ktmygGNWqEvO=59ZVFbTprUHLuXAmSM3UXfVrShPJsz_g@mail.gmail.com>

On Tuesday 15 April 2014 07:16 PM, Yegor Yefremov wrote:
> On Wed, Apr 9, 2014 at 8:56 PM, David Miller <davem@davemloft.net> wrote:
>> From: Mugunthan V N <mugunthanvnm@ti.com>
>> Date: Wed, 9 Apr 2014 11:34:40 +0530
>>
>>> Dual EMAC works with VLAN segregation of the ports, so default vlan needs
>>> to be added in dual EMAC case else default vlan will be tagged for all
>>> egress packets and vlan unaware switches/servers will drop packets
>>> from the EVM.
> Hi Mugunthan,
>
> though this patch fixes drop packets issue, it introduces another
> issue. Just connect both interfaces to one switch and configure
> different subnets. As soon as you get a broadcast you have an endless
> loop and network communication is not possible at all. Before this
> patch you could operate as if you had really two independent NICs.
>
>

This patch doesn't add any multicast or unicast entry in the ALE table,
so there is no possible way that a broadcast packet is switched within
the two external ports, and this patch removes the encapsulation of the
default vlan id which is used for internal packet switching inside CPSW
switch from host and any packet received from external port will be
tagged with port vlan so internal switching will happen with that port
vlan-id which will be only that physical port and host port. so the
scenario which you mentioned cannot happen theoretically untill you
enable bridge between the dual ethernet interface and connect both to
the same interface.

Regards
Mugunthan V N

  reply	other threads:[~2014-04-16  5:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-09  6:04 [net PATCH 1/1] drivers: net: cpsw: Add default vlan for dual emac case also Mugunthan V N
2014-04-09 13:42 ` Yegor Yefremov
2014-04-09 18:56 ` David Miller
2014-04-15 13:46   ` Yegor Yefremov
2014-04-16  5:57     ` Mugunthan V N [this message]
2014-04-16 13:58       ` Yegor Yefremov
2014-05-02  8:58         ` Yegor Yefremov
2014-05-05 14:20           ` Mugunthan V N
2014-05-19  8:46             ` Yegor Yefremov

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=534E1BD2.5050809@ti.com \
    --to=mugunthanvnm@ti.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=yegorslists@googlemail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.