Each DPDK port could be enumerated using its PCI-address
DataPlane would use contiguous range of DPDK ports
Also there are some runtime checks against the assumptions above.
However, for some devices like Chelsio the first assumption is wrong - each PCI-enumerated device provides two DPDK ports while the second is identified using suffix _2.
And the second assumption makes it impossible to ignore some possible unconnected ports in DataPlane configuration.
So one have to perform following changes:
To allow to specify DPDK port identifier inside DataPlane configuration and use the value while initialization if set
To transform DPDK port range to any form of identifier enumeration (list, array, map, etc)
To adjust the runtime checks to enable DataPlane initialization
The DataPlane code based on two assumptions:
However, for some devices like Chelsio the first assumption is wrong - each PCI-enumerated device provides two DPDK ports while the second is identified using suffix
_2
. And the second assumption makes it impossible to ignore some possible unconnected ports in DataPlane configuration.So one have to perform following changes: