Skip to content

Local and dpdk port id's mixup in worker #203

@TheRandomCharacter

Description

@TheRandomCharacter

Discussed in #201

Originally posted by zV3KT0R May 30, 2024
uint8_t physicalPort_flags[CONFIG_YADECAP_PORTS_SIZE];
but metadata->fromPortId can be greater than CONFIG_YADECAP_PORTS_SIZE

if (basePermanently.globalBaseAtomic->physicalPort_flags[metadata->fromPortId] & YANET_PHYSICALPORT_FLAG_IN_DUMP)

dpdk port id is erroneously used as index instead of local port id.
dataplane::base::permanently.PortMapper

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions