Skip to content

src/net_info: Bug fix#22

Open
kalmjasper wants to merge 1 commit into
mainfrom
net_info_fixed
Open

src/net_info: Bug fix#22
kalmjasper wants to merge 1 commit into
mainfrom
net_info_fixed

Conversation

@kalmjasper

Copy link
Copy Markdown
Contributor

No description provided.

@Geertiebear Geertiebear left a comment

Copy link
Copy Markdown
Collaborator

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?

Comment thread include/eth_rxtx_opts.h

using NICType = EthRxTx<NIC_OPTS>;

// template class EthRxTx<AF_XDP_OPTS>;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

?

Comment thread src/net_info.cpp

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread utils/dpdk_wrappers.h
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
Copy Markdown
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