Score:0

Unable setup VLAN mirror on vf port with NIC Intel X710

cn flag

I want to create another vf port to mirror traffic of 2 vlans.

The steps I followed:

echo 3 > /sys/class/net/eno1/device/sriov_numvfs
ip link set eno1 vf 0 mac 00:11:22:33:44:66 vlan 2
ip link set eno1 vf 1 mac 00:11:22:33:44:66 vlan 3
ip link set eno1 vf 0 mac 00:11:22:33:44:26

ls /sys/class/net/eno1/device/virtfn2/net/
# eno1v2

echo add 2,3 > /sys/class/net/eno1/device/sriov/2/vlan_mirror

The issue is the last command did not work because sriov directory is not found. In my Ubuntu 22.04 server, the directory/file related to sriov shown as below instead

root@ubuntu:/sys/class/net/eno1/device# ls | grep sriov
sriov_drivers_autoprobe
sriov_numvfs
sriov_offset
sriov_stride
sriov_totalvfs
sriov_vf_device
sriov_vf_total_msix

The NIC information:

root@ubuntu:~# ethtool -i eno1

driver: i40e
version: 5.15.0-1009-realtime
firmware-version: 8.40 0x8000af86 20.5.13
expansion-rom-version:
bus-info: 0000:19:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
root@testing-5g-gnb-321:~#

How can I acheive vlan mirroring or is there another way?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.