-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: main
Are you sure you want to change the base?
Conversation
9bff978
to
d407b8d
Compare
There was a problem hiding this 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>; |
There was a problem hiding this comment.
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}; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the change?
No description provided.