All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: carl h <heyen2000@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: How does vlan driver pass vlan info to the h/w ethernet driver
Date: Mon, 1 May 2017 17:02:05 +0200	[thread overview]
Message-ID: <20170501150205.GC1285@lunn.ch> (raw)
In-Reply-To: <CABM+yxmdJD2k1kA+fY9Yva24oB8BuDDhS-FQdY2EJM1ghf6xWw@mail.gmail.com>

On Mon, May 01, 2017 at 10:52:17AM -0400, carl h wrote:
> The Ethernet hardware *is* a 2 port switch in a phone which does support
> vlan tag insertion in the switch and driver. The driver is third party which
> I'm trying to get working with vlans.

> But i can't see how the vlan info propagates down to the switch driver.

How are you adding the vlan?

bridge vlan add dev port0 vid 42 self

That should call __vlan_add(), which calls __vlan_vid_add() which uses
switchdev to push the VLAN down into the hardware.

       Andrew

      parent reply	other threads:[~2017-05-01 15:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-28 13:46 How does vlan driver pass vlan info to the h/w ethernet driver carl h
2017-05-01 14:20 ` carl h
2017-05-01 14:37   ` Andrew Lunn
2017-05-01 14:52     ` carl h
2017-05-01 14:57       ` David Miller
2017-05-01 18:26         ` carl h
2017-05-01 19:29           ` Andrew Lunn
2017-05-01 19:35             ` carl h
2017-05-01 15:02       ` Andrew Lunn [this message]

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=20170501150205.GC1285@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=heyen2000@gmail.com \
    --cc=netdev@vger.kernel.org \
    /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.