Skip to content

Non-zero DPDK port won't get default gateway possibly after F-Stack 1.24 #883

@whatmatrix

Description

@whatmatrix

Could you help me understand why it happens and how to make it work without calling ff_route manually?

Symptom

My test app was only able to connect() to a TCP host when using DPDK port0. connect() call with a non-zero DPDK port will return errno 113 "No Route to Host".

Debug Steps

The packet capture showed that the F-Stack won't send an ARP request for a gateway IP address. It is possible that the TCP stack does not know a MAC address for the default gateway.

ff_netstat -rn showed that there is no default gateway.

Workaround

connect() works after manually adding the default gateway using ff_route.

Comments

It worked fine in F-Stack 1.23.

Each DPDK port has an IP address within the same subnet and the same gateway.

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