From: Stephen Hemminger <stephen@networkplumber.org>
To: "Ananyev, Konstantin" <konstantin.ananyev@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] ixgbe: Discard SRIOV transparent vlan packet headers.
Date: Mon, 14 Dec 2015 11:25:16 -0800 [thread overview]
Message-ID: <20151214112516.35bbc1f8@xeon-e3> (raw)
In-Reply-To: <2601191342CEEE43887BDE71AB97725836AD3A0B@irsmsx105.ger.corp.intel.com>
On Mon, 14 Dec 2015 19:12:26 +0000
"Ananyev, Konstantin" <konstantin.ananyev@intel.com> wrote:
>
>
> > From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> > Sent: Friday, December 11, 2015 4:59 PM
> > To: Zhang, Helin; Ananyev, Konstantin
> > Cc: dev@dpdk.org; Tom Kiely; Stephen Hemminger
> > Subject: [PATCH] ixgbe: Discard SRIOV transparent vlan packet headers.
> >
> > From: Tom Kiely <tkiely@brocade.com>
> >
> > SRIOV VFs support "transparent" vlans. Traffic from/to a VM
> > associated with a VF is tagged/untagged with the specified
> > vlan in a manner intended to be totally transparent to the VM.
> >
> > The vlan is specified by "ip link set <device> vf <n> vlan <v>".
> > The VM is not configured for any vlan on the VF and the VM
> > should never see these transparent vlan headers for that reason.
> >
> > However, in practice these vlan headers are being received by
> > the VM which discards the packets as that vlan is unknown to it.
> > The Linux kernel explicitly discards such vlan headers but DPDK
> > does not.
> > This patch mirrors the kernel behaviour for SRIOV VFs only
>
>
> I have few concerns about that approach:
>
> 1. I don't think vlan_tci info should *always* be stripped by vf RX routine.
> There could be configurations when that information might be needed by upper layer.
> Let say VF can be member of 2 or more VLANs and upper layer would like to have that information
> for further processing.
> Or special mirror VF, that does traffic snnoping, or something else.
> 2. Proposed implementation would introduce a slowdown for all VF RX routines.
> 3. From the description it seems like the aim is to clear VLAN information for the RX packet.
> Though the patch actually clears VLAN info only for the RX packet whose VLAN tag is not present inside SW copy of VFTA table.
> Which makes no much point to me:
> If VLAN is not present in HW VFTA table, then packet with that VLAN tag will be discarded by HW anyway.
> If it is present inside VFTA table (both SW & HW), then VLAN information would be preserved with and without the patch.
>
> If you need to clear VLAN information, why not to do it on the upper layer - inside your application itself?
> Either create some sort of wrapper around rx_burst(), or setup an RX call-back for your VF device.
>
> Konstantin
The aim is to get SRIOV to work when the transparent VLAN tag feature is used.
Please talk to the Linux driver team. Similar code exists there in ixgbevf_process_skb_fields.
The other option is have a copy of all the receive logic which is only
used by VF code.
Tom has more details. But you can reproduce problem by just testing current
code with the transparent VLAN option.
next prev parent reply other threads:[~2015-12-14 19:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-11 16:59 Stephen Hemminger
2015-12-14 19:12 ` Ananyev, Konstantin
2015-12-14 19:25 ` Stephen Hemminger [this message]
2015-12-14 19:57 ` Ananyev, Konstantin
2015-12-14 21:35 ` Stephen Hemminger
2015-12-15 14:37 ` Ananyev, Konstantin
2015-12-17 10:30 ` Tom Kiely
2016-02-10 15:53 ` Bruce Richardson
2016-02-11 17:50 ` Tom Kiely
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=20151214112516.35bbc1f8@xeon-e3 \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=konstantin.ananyev@intel.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).