DPDK usage discussions
 help / color / mirror / Atom feed
From: James B <jamesbrowning137@gmail.com>
To: users@dpdk.org
Subject: Can not set inner/outer tpid for qinq filtering on VF (-95 error).
Date: Tue, 5 Dec 2023 18:31:18 -0800	[thread overview]
Message-ID: <CAGk7oekmGJzxDjzQdDUTA9PuLccnuyJurYdSKKS8JTcFcBeTqQ@mail.gmail.com> (raw)

Hello,

I would like to set up a vf with qinq filtering. My setup is this: I
have an E810 NIC (which uses the ice driver), which I create a child
VF for. The VF is bound to the vfio-pci driver.
I am using testpmd to test/evaluate my setup. Here are the steps I'm
following for setup:
https://edc.intel.com/content/www/us/en/design/products/ethernet/config-guide-e810-dpdk/q-in-q-support

The issue is, once I get to the step where you set the tpid, it fails:

testpmd> vlan set filter on 0
testpmd> vlan set extend on 0
testpmd> vlan set inner tpid 0x8100 0
tx_vlan_tpid_set(port_pi=0, vlan_type=1, tpid=33024) failed diag=-95
testpmd> vlan set outer tpid 0x8100 0
tx_vlan_tpid_set(port_pi=0, vlan_type=2, tpid=33024) failed diag=-95
testpmd>

Here is some additional information about my setup:

Network card:
    Intel E832-L

Linux kernel:
   5.15

Ice driver version:
    Tried 1.11.14, 1.11.17, and 1.12.7

DPDK version:
   Tried both 23.03 and 22.11

Ethtool settings:
    ethtool -k eno1
Features for eno1:
rx-checksumming: on
tx-checksumming: on
        tx-checksum-ipv4: on
        tx-checksum-ip-generic: off [fixed]
        tx-checksum-ipv6: on
        tx-checksum-fcoe-crc: off [fixed]
        tx-checksum-sctp: on
scatter-gather: on
        tx-scatter-gather: on
        tx-scatter-gather-fraglist: off [fixed]
tcp-segmentation-offload: on
        tx-tcp-segmentation: on
        tx-tcp-ecn-segmentation: on
        tx-tcp-mangleid-segmentation: off
        tx-tcp6-segmentation: on
generic-segmentation-offload: on
generic-receive-offload: on
large-receive-offload: off [fixed]
rx-vlan-offload: on
tx-vlan-offload: on
ntuple-filters: on
receive-hashing: on
highdma: on
rx-vlan-filter: on
vlan-challenged: off [fixed]
tx-lockless: off [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: on
tx-gre-csum-segmentation: on
tx-ipxip4-segmentation: on
tx-ipxip6-segmentation: on
tx-udp_tnl-segmentation: on
tx-udp_tnl-csum-segmentation: on
tx-gso-partial: on
tx-tunnel-remcsum-segmentation: off [fixed]
tx-sctp-segmentation: off [fixed]
tx-esp-segmentation: off [fixed]
tx-udp-segmentation: on
tx-gso-list: off [fixed]
fcoe-mtu: off [fixed]
tx-nocache-copy: off
loopback: off [fixed]
rx-fcs: off
rx-all: off [fixed]
tx-vlan-stag-hw-insert: off
rx-vlan-stag-hw-parse: off
rx-vlan-stag-filter: on
l2-fwd-offload: off
hw-tc-offload: off
esp-hw-offload: off [fixed]
esp-tx-csum-hw-offload: off [fixed]
rx-udp_tunnel-port-offload: on
tls-hw-tx-offload: off [fixed]
tls-hw-rx-offload: off [fixed]
rx-gro-hw: off [fixed]
tls-hw-record: off [fixed]
rx-gro-list: off
macsec-hw-offload: off [fixed]
rx-udp-gro-forwarding: off
hsr-tag-ins-offload: off [fixed]
hsr-tag-rm-offload: off [fixed]
hsr-fwd-offload: off [fixed]
hsr-dup-offload: off [fixed]

Ethtool private flags:
    ethtool --show-priv-flags eno1
Private flags for eno1:
link-down-on-close           : off
fw-lldp-agent                : off
channel-inline-fd-mark       : off
channel-pkt-inspect-optimize : on
channel-pkt-clean-bp-stop    : off
channel-pkt-clean-bp-stop-cfg: off
vf-true-promisc-support      : on
mdd-auto-reset-vf            : off
vf-vlan-pruning              : off
legacy-rx                    : off
cgu_fast_lock                : off
dpll_monitor                 : off
extts_filter                 : off
itu_g8262_filter_used        : off
allow-no-fec-modules-in-auto : off

link information:
ip link show eno1
6: eno1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq
state UP mode DEFAULT group default qlen 1000
    link/ether 00:e0:4b:78:65:24 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether 00:11:22:33:44:11 brd ff:ff:ff:ff:ff:ff, spoof
checking off, link-state auto, trust on
    altname enp244s0f0

Has anyone encountered this error before? I'm hoping that I'm just
missing some configuration setting. Given that I've tried multiple ice
drivers and multiple dpdk versions, I'm starting to fear this is a
hardware limitation, despite this not being mentioned in the intel
guide.

Thank you for your help,
James

                 reply	other threads:[~2023-12-06 12:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAGk7oekmGJzxDjzQdDUTA9PuLccnuyJurYdSKKS8JTcFcBeTqQ@mail.gmail.com \
    --to=jamesbrowning137@gmail.com \
    --cc=users@dpdk.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 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).