We are capturing Multicast UDP streams using DPDK and need help with capturing the multicast packets coming on a VLAN trunk port. The pNIC(Intel x710) on our Linux server is connected to a trunk port on the switch and is thus receiving packets from 2 VLANs. Our Linux server has CentOS installed on the bare metal (no hypervisor is being used).
In normal case of non-VLAN traffic, we bind the physical NIC with DPDK and create a KNI port(with a well defined IP) for it (KNI is required for making mutlicast join request and without KNI port we are not able to make join requests).
For VLAN traffic, the physical port of our server is connected to a trunk port on the switch. On the Linux server, we have configured two VLAN interfaces pNIC.10 and pNIC.20 receiving packets from VLAN 10 and 20 respectively (referred https://www.linuxtechi.com/vlan-tagged-nic-ethernet-card-centos-rhel-servers/). In this case, we still need to bind the physical port with DPDK as binding happens for a PCI device id (the VLAN IFs do not have a PCI id). However, we are not able to figure out what and how many KNI ports to create. Have tried creating two KNI ports - one per VLAN ID and this did not work for us. The KNI ports could not be enabled in this case.
Any help will be greatly appreciated !!