yanet icon indicating copy to clipboard operation
yanet copied to clipboard

Distinct logical and dpdk port ids

Open TheRandomCharacter opened this issue 1 year ago • 0 comments

Right now it is possible to use logical port id is in instead of dpdk port id, this is error prone. It would be nice to define define distinct types for these ids and move to using them instead:

struct DPDKPort {
    uint16_t id_;
};

struct LogicalPort {
    tPortId id_;
};

This will prevent using one in lieu of another by accident.

TheRandomCharacter avatar Mar 29 '24 14:03 TheRandomCharacter