Hi,
now I got time to test. Here is the feedback.
Using the python patch worked for me but not an option to set VLAN on port and use the arp -p 0 -v:
With patch:
trex(service)>capture monitor start --rx 0
trex(service)>l3 --port 0 --src 172.16.0.7 --dst 172.16.0.10
Setting port 0 in L3 mode: [SUCCESS]
Resolving destination on port(s) [0]: [SUCCESS]
Port 0 - Recieved ARP reply from: 172.16.0.10, hw: fa:16:3e:9a:6f:56
113.36 [ms]
trex(service)>
#2 Port: 0 ◀── RX
Type: ARP, Size: 64 B, TS: 535.85 [sec]
Ether(type=33024, dst='fa:16:3e:27:90:9b', src='fa:16:3e:9a:6f:56')/Dot1Q(type=2054, vlan=440, prio=0, id=0)/ARP(op=2, hwlen=6, hwsrc='fa:16:3e:9a:6f:56', hwtype=1, plen=4, ptype=2048, psrc='172.16.0.10', pdst='172.16.0.7', hwdst='fa:16:3e:27:90:9b')/Padding(load=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
Side note:
I used VPP on other SRIOV node (the 172.16.0.10 from above), and managed to use the VLAN strip offset with the driver to strip VLAN on ingress in that one:
root@ubuntu-vpp:~# vppctl show trace
------------------- Start of thread 0 vpp_main -------------------
Packet 1
00:02:50:745214: dpdk-input
TenGigabitEthernet0/5/0 rx queue 0
buffer 0x4e03: current data 0, length 60, free-list 0, totlen-nifb 0, trace 0x0
PKT MBUF: port 0, nb_segs 1, pkt_len 60
buf_len 2176, data_len 60, ol_flags 0x1c1, data_off 128, phys_addr 0x9a238100
packet_type 0x0
Packet Offload Flags
PKT_RX_VLAN_PKT (0x0001) RX packet is a 802.1q VLAN packet
PKT_RX_VLAN_STRIPPED (0x0040) RX packet VLAN tag stripped
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
ARP: fa:16:3e:27:90:9b -> ff:ff:ff:ff:ff:ff
request, type ethernet/IP4, address size 6/4
fa:16:3e:27:90:9b/
172.16.0.7 -> 00:00:00:00:00:00/
172.16.0.10
00:02:50:745226: ethernet-input
ARP: fa:16:3e:27:90:9b -> ff:ff:ff:ff:ff:ff
00:02:50:745232: arp-input
request, type ethernet/IP4, address size 6/4
fa:16:3e:27:90:9b/
172.16.0.7 -> 00:00:00:00:00:00/
172.16.0.10
00:02:50:745245: TenGigabitEthernet0/5/0-output
TenGigabitEthernet0/5/0
ARP: fa:16:3e:9a:6f:56 -> fa:16:3e:27:90:9b
reply, type ethernet/IP4, address size 6/4
fa:16:3e:9a:6f:56/
172.16.0.10 -> fa:16:3e:27:90:9b/
172.16.0.7
00:02:50:745247: TenGigabitEthernet0/5/0-tx
TenGigabitEthernet0/5/0 tx queue 0
buffer 0x4e03: current data 0, length 60, free-list 0, totlen-nifb 0, trace 0x0
ARP: fa:16:3e:9a:6f:56 -> fa:16:3e:27:90:9b
reply, type ethernet/IP4, address size 6/4
fa:16:3e:9a:6f:56/
172.16.0.10 -> fa:16:3e:27:90:9b/
172.16.0.7
root@ubuntu-vpp:~# more /etc/vpp/startup.conf
unix {
nodaemon
log /tmp/vpp.log
full-coredump
}
api-trace {
on
}
api-segment {
gid vpp
}
dpdk {
socket-mem 1024,1024
dev 0000:00:05.0 {vlan-strip-offload on}
dev 0000:00:06.0 {vlan-strip-offload on}
}
root@ubuntu-vpp:~#
Thanks alot/Håkan