Comments (3)
if (vlans > 1 && strip)
rx_vlan_strip_set_on_vf(port->rte_port_number, vf->num, 1 ); // if more than one vlan in the list force strip to be on
tx_vlan_insert_set_on_vf(port->rte_port_number, vf->num, 0 ); // and set insert to id 0 which make use TX descriptor value to insert
from vfd.
tested, VFd works,
upstream systems handling HEAT have to be modified to accept VLAN list and strip/insert option
from vfd.
This is fixed in commit 4587363.
VFd will allow the following configurations for a VF:
Single VLAN, strip==false -- Packets arriving will be passed to the guest only if the VLAN ID in the packet matches and the ID will not be removed. On Tx the application must add the VLAN ID to the mbuf descriptor, and it must match the VLAN ID in the list.
Single VLAN, strip==true -- Packets arriving will be passed to the guest as described above, and the VLAN ID will be removed. Tx packets will have the VLAN ID added (inserted) into the packet using the ID in the config.
Multiple VLAN IDs in the list, strip == false -- Any packet arriving which has an ID which is in the list will be passed into the guest; the ID will not be removed. On Tx, the application is expected to add one of the VLAN IDs in the list to the mbuf descriptor. If the ID does not match the NIC will drop the packet as spoofed.
The previous cases are the original behavour, and this change does not change that behavour.
Mutiple VLAN IDs in the list, strip == true -- Packets arriving will be passed into the guest provided the VLAN ID matches one of the IDs in the list. The ID will be removed from the packet before it is written into the guest's buffer. Tx packets must contain one of the VLAN IDs in the list in the mbuf descriptor. If the ID in the descriptor is not in the list, the NIC will drop the packet as spoofed.
from vfd.
Related Issues (20)
- VF TC qshare percentage HOT 1
- VF configuration not reset upon VFD termination
- Add VF with multiple mac addresses is failing in nic_agnostic branch HOT 1
- wrong qshare array calculation HOT 1
- MAC list broken with proper handling of set mac-vlan callback HOT 4
- Check configuration name when deleting a configuration HOT 2
- Potential configuration file race condition HOT 2
- Delete of a configuration without fully qualified name fails HOT 1
- Don't reject duplicate add if parms are identical
- Seg fault when VF MAC list has empty string HOT 1
- Duplicate PF/VF in different config files cause guest issues HOT 2
- VFd attempts to set a nil MAC into the PF/VF whitelist HOT 1
- VFd core dumps when a VF config has invalid pciid HOT 1
- Looks like there's missing brackets here... HOT 2
- missing break in vfd_bnxt.c? HOT 1
- Hole left in MAC list for VF HOT 1
- Error while configuring Mirroring HOT 7
- No response if unknown request received from iplex HOT 1
- VFd init script should select a CPU for VFd based on config
- VF bound to Kernel driver HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vfd.