DPDK usage discussions
 help / color / mirror / Atom feed
From: "Wu, Jianyue (NSB - CN/Hangzhou)" <jianyue.wu@nokia-sbell.com>
To: "xiaoyun.li@intel.com" <xiaoyun.li@intel.com>,
	"users@dpdk.org" <users@dpdk.org>
Cc: "Harouat, Karim (Nokia - FR/Lannion)" <karim.harouat@nokia.com>,
	"Meunier,
	 Julien (Nokia - FR/Paris-Saclay)" <julien.meunier@nokia.com>,
	"Cheng, Fei 2. (NSB - CN/Hangzhou)" <fei.2.cheng@nokia-sbell.com>,
	"Lu, Malak (NSB - CN/Hangzhou)" <malak.lu@nokia-sbell.com>,
	"Li, Jiu (NSB - CN/Hangzhou)" <jiu.li@nokia-sbell.com>,
	"Pan,
	Jianyong (NSB - CN/Hangzhou)" <jianyong.pan@nokia-sbell.com>,
	"Hong,
	Christian (NSB - CN/Hangzhou)" <christian.hong@nokia-sbell.com>,
	"Fei, Xiang (NSB - CN/Hangzhou)" <xiang.fei@nokia-sbell.com>,
	"Ning, Gang (NSB - CN/Hangzhou)" <gang.ning@nokia-sbell.com>,
	"Ren,
	Longlong (NSB - CN/Hangzhou)" <longlong.ren@nokia-sbell.com>,
	"Ye, Hua (NSB - CN/Hangzhou)" <hua.ye@nokia-sbell.com>
Subject: [dpdk-users] [dpdk-18.05] Issue while configuring VLAN ID and priority in VF
Date: Tue, 14 Jul 2020 02:43:38 +0000	[thread overview]
Message-ID: <1174405832d547f4b348f61a1d1ffed6@nokia-sbell.com> (raw)

Hi, xiaoyun,

Could you help give a hand about this issue? Thanks indeed:)

Background:
Simplified traffic flow is like this: Sender XEON X552 eth1 vf 0 -> Receiver XEON X552 eth1 vf 0.
Our requirement is to configure DPDK to support one VLAN ID, and with multiple priorities 0~7.

Current configuration is:
PVID:
rte_eth_dev_set_vlan_pvid(port_id, 201, 1);
VLAN offload:
                  vlan_offload = rte_eth_dev_get_vlan_offload(port_id);
  vlan_offload &= ~ETH_VLAN_STRIP_OFFLOAD;
  vlan_offload &= ~ETH_VLAN_FILTER_OFFLOAD;
  vlan_offload &= ~ETH_VLAN_EXTEND_OFFLOAD;
  if (0 != rte_eth_dev_set_vlan_offload(port_id, vlan_offload))
Spoof off, trust on:
          vf 0 MAC 02:40:43:80:01:39, spoof checking off, link-state auto, trust on, query_rss off

Test scenarios:
====================================================
First scenario: set vlan in vf 0 -- priority always 0
====================================================
ip link show eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9194 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 02:40:43:80:01:38 brd ff:ff:ff:ff:ff:ff
vf 0 MAC 02:40:43:80:01:39, vlan 201, spoof checking off, link-state auto, trust on, query_rss off

If we configure vlan in vf 0, then we can only send out packets with priority 0.
Even we already enabled mbuf->ol_flags |= PKT_TX_VLAN_PKT; and set correct mbuf->vlan_tci.

======================================================

Second scenario: not set vlan in vf 0 -- can't recv
======================================================
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9194 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 02:40:43:80:01:38 brd ff:ff:ff:ff:ff:ff
vf 0 MAC 02:40:43:80:01:39, spoof checking off, link-state auto, trust on, query_rss off

If we don't set vlan in vf 0, then we can send out in sender XEON X552 eth1 vf 0 with correct VLAN ID and priority,
From tcpdump in mirrored traffic of receiver XEON, we can see the packet has correct VLAN ID and priority,
but the problem is packet silently dropped. From DPDK counters, we can't see the packet received in
receiver XEON X552 eth1 vf0. When we enable promiscuous mode, we can see the packets arrive in
receiver XEON, and VLAN ID, priority is correct. but can't arrive at DPDK.

From my simple assumption, maybe we need second scenario, to support multiple priorities.
But how to configure to let the packet pass vf 0?
Did I miss something in my configuration?

Thanks indeed in advance!

Best Regards,
Dave(Jianyue)


             reply	other threads:[~2020-07-14  2:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-14  2:43 Wu, Jianyue (NSB - CN/Hangzhou) [this message]
2020-07-14  2:53 ` Johnson, Brian
2020-07-14  3:21   ` Wu, Jianyue (NSB - CN/Hangzhou)
2020-07-14  3:46     ` Johnson, Brian
2020-07-14  5:01       ` Wu, Jianyue (NSB - CN/Hangzhou)
2020-07-14  5:29   ` Li, Xiaoyun
2020-07-14  5:53     ` Wu, Jianyue (NSB - CN/Hangzhou)

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=1174405832d547f4b348f61a1d1ffed6@nokia-sbell.com \
    --to=jianyue.wu@nokia-sbell.com \
    --cc=christian.hong@nokia-sbell.com \
    --cc=fei.2.cheng@nokia-sbell.com \
    --cc=gang.ning@nokia-sbell.com \
    --cc=hua.ye@nokia-sbell.com \
    --cc=jianyong.pan@nokia-sbell.com \
    --cc=jiu.li@nokia-sbell.com \
    --cc=julien.meunier@nokia.com \
    --cc=karim.harouat@nokia.com \
    --cc=longlong.ren@nokia-sbell.com \
    --cc=malak.lu@nokia-sbell.com \
    --cc=users@dpdk.org \
    --cc=xiang.fei@nokia-sbell.com \
    --cc=xiaoyun.li@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).