I can see from different post on this site that if working with sr-iov, i should work with vlan
Is this an obligation to work with vlan if working with sr-iov?
If not according to which parameter will the different vf get the traffic.
Let's say i declare max_vfs=7, how will the traffic be seperated between the vm?
However till i get an answer i tried to work with vlan
And i still don't get traffic in vm, but i see it in the physical interface of the host
I tried to do the following to define the vlan
In virsh edit
<interface type='hostdev' managed='yes'>
<mac address='52:54:00:60:7f:57'/>
<source>
<address type='pci' domain='0x0000' bus='0x15' slot='0x10' function='0x0'/>
</source>
<vlan>
<tag id='44'/>
</vlan>
<alias name='hostdev0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</interface>
In host ip link
23: eth6: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 38:ea:a7:8f:fa:98 brd ff:ff:ff:ff:ff:ff
vf 0 MAC 52:54:00:60:7f:57, vlan 44
In guest
modprob 8021q
eth1 | Link encap:Ethernet HWaddr 52:54:00:60:7F:57 |
inet6 addr: fe80::5054:ff:fe60:7f57/64 Scope:Link | |
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 | |
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:0 (0.0 b) TX bytes:1156 (1.1 KiB) |
eth1.44 Link encap:Ethernet HWaddr 52:54:00:60:7F:57
inet6 addr: fe80::5054:ff:fe60:7f57/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 |