Eric <huqiwei...@live.com> writes:

> Thanks in advance
>
> the trace packet is:
>
> ---
> Packet 17
>
> 00:18:16:753781: dpdk-input
> dp0 rx queue 0
> buffer 0x9679b: current data 0, length 60, buffer-pool 0, ref-count 1, 
> totlen-nifb 0, trace handle 0x10
> ext-hdr-valid
> l4-cksum-computed l4-cksum-correct
> PKT MBUF: port 0, nb_segs 1, pkt_len 60
> buf_len 2176, data_len 60, ol_flags 0x182, data_off 128, phys_addr 0x259e740
> packet_type 0x3 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
> rss 0xcc301824 fdir.hi 0x0 fdir.lo 0xcc301824
> Packet Offload Flags
> PKT_RX_RSS_HASH (0x0002) RX packet with RSS hash result
> PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
> PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
> Packet Types
> RTE_PTYPE_L2_ETHER_ARP (0x0003) ARP packet
> ARP: 56:26:1a:f2:fe:e1 -> ff:ff:ff:ff:ff:ff 802.1q vlan 100
> request, type ethernet/IP4, address size 6/4
> 56:26:1a:f2:fe:e1/1.1.1.1 -> 00:00:00:00:00:00/1.1.1.3
> 00:18:16:753783: ethernet-input
> frame: flags 0x3, hw-if-index 1, sw-if-index 1
> ARP: 56:26:1a:f2:fe:e1 -> ff:ff:ff:ff:ff:ff 802.1q vlan 100
> 00:18:16:753800: error-drop
> rx:dp0
> 00:18:16:753800: drop
> ethernet-input: unknown vlan
>
> the host vf configuration has been destoried,the vlan on the vf.
>
> the vlan id is disappeared
>
> 


So a few things:-

When you configure VLAN stripping in Linux on a given VF.When you start
VPP that interface is claimed by VPP, and I pretty sure that any prior
configuration is discarded.

I don't think there is a way to configure VLAN stripping in VPP. I took
a quick look and I don't see RTE_ETH_RX_OFFLOAD_VLAN_STRIP being passed
to DPDK anywhere. I think the VPP philosophy is that it always wants to
see the VLAN.

I think your approach of configuring VLAN on the sub-interfaces is the
correct one.

-- 
Regards, Ray K
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20941): https://lists.fd.io/g/vpp-dev/message/20941
Mute This Topic: https://lists.fd.io/mt/89468543/21656
Mute #dpdk:https://lists.fd.io/g/vpp-dev/mutehashtag/dpdk
Mute #forwarding:https://lists.fd.io/g/vpp-dev/mutehashtag/forwarding
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to