Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/net_info: Bug fix #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

src/net_info: Bug fix #22

wants to merge 1 commit into from

Conversation

kalmjasper
Copy link
Contributor

No description provided.

Copy link
Collaborator

@Geertiebear Geertiebear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is a bit random ;p What was the bug this PR aims to fix?

@@ -47,3 +47,5 @@ struct AF_XDP_OPTS {

using NICType = EthRxTx<NIC_OPTS>;

// template class EthRxTx<AF_XDP_OPTS>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

close(sock);

if (!routes_map.contains(iface)) {
spdlog::warn("Cannot get routes for {}, returning empty RouteInfo", iface);
return net_info::RouteInfo{.if_name = iface};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What bug does this fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't run the tool on a bare NIC for testing with AF_XDP otherwise. Needs to be connected to a network interface

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But then you need to provide some extra details right? Like gateway mac and source ip

std::array<typename RTEMbufArray<Elem, N, type>::pointer, N> ptrs;
auto ptr = reinterpret_cast<void **>(ptrs.data());
auto res = rte_ring_dequeue_burst(ptr_, ptr, num, nullptr);
std::array<typename RTEMbufArray<Elem, N, type>::pointer, N> objs;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants