All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nicolas de Pesloüan" <nicolas.2p.debian@gmail.com>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Jiri Pirko <jpirko@redhat.com>, Jesse Gross <jesse@kernel.org>,
	netdev@vger.kernel.org, davem@davemloft.net,
	shemminger@linux-foundation.org, kaber@trash.net,
	fubar@us.ibm.com, eric.dumazet@gmail.com, andy@greyhouse.net,
	xiaosuo@gmail.com
Subject: Re: [patch net-next-2.6] net: vlan: make non-hw-accel rx path similar to hw-accel
Date: Mon, 04 Apr 2011 22:47:48 +0200	[thread overview]
Message-ID: <4D9A2E74.70105@gmail.com> (raw)
In-Reply-To: <m1d3l1eqw8.fsf@fess.ebiederm.org>

Le 04/04/2011 21:51, Eric W. Biederman a écrit :

>
> __netif_receive_skb is actually late for untagging.  eth_type_trans
> would be better but not path of control into __netif_receive_skb
> actually calls eth_type_trans.

Because vlan may nest, we need to keep some sort of frame untagging inside __netif_receive_skb.

In order to avoid duplicate code, I suggest to manage the first level untagging (for non hwaccel) 
the same way we manage other levels of untagging (which are by design non hwaccell).

Hence my proposal to use a rx_handler on the parent device of the vlan device, if we know the parent 
device lack hwaccel vlan handling.

So, instead of trying to mimic the hwaccel path in software, I suggest to simply disable software 
untagging when we know hwaccel untagging is present, by removing (or not installing) the vlan 
rx_handler from the hwaccel net_device.

Can someone clarify whether hwaccel capable NIC will always untag tagged frames or will only do so 
if requested at device setup?

	Nicolas.

  parent reply	other threads:[~2011-04-04 20:47 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-02 10:26 [patch net-next-2.6] net: vlan: make non-hw-accel rx path similar to hw-accel Jiri Pirko
2011-04-02 15:55 ` Stephen Hemminger
2011-04-02 18:27   ` Jiri Pirko
2011-04-03  9:27     ` Nicolas de Pesloüan
2011-04-03 13:22       ` Jiri Pirko
2011-04-03 15:23 ` Nicolas de Pesloüan
2011-04-03 20:38   ` Jesse Gross
2011-04-04  6:54     ` Nicolas de Pesloüan
2011-04-04  7:14       ` Jiri Pirko
2011-04-04 19:00         ` Nicolas de Pesloüan
2011-04-04 19:51           ` Eric W. Biederman
2011-04-04 20:29             ` Jiri Pirko
2011-04-04 20:47             ` Nicolas de Pesloüan [this message]
2011-04-04 20:50               ` Jesse Gross
2011-04-04 21:04                 ` Nicolas de Pesloüan
2011-04-05  7:25                   ` Jiri Pirko
2011-04-05  7:26               ` Jiri Pirko
2011-04-04 20:30           ` Jiri Pirko
2011-04-04 20:51             ` Nicolas de Pesloüan
2011-04-05  7:19               ` Jiri Pirko

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=4D9A2E74.70105@gmail.com \
    --to=nicolas.2p.debian@gmail.com \
    --cc=andy@greyhouse.net \
    --cc=davem@davemloft.net \
    --cc=ebiederm@xmission.com \
    --cc=eric.dumazet@gmail.com \
    --cc=fubar@us.ibm.com \
    --cc=jesse@kernel.org \
    --cc=jpirko@redhat.com \
    --cc=kaber@trash.net \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@linux-foundation.org \
    --cc=xiaosuo@gmail.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.