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

Getting error: ‘XDP_RING_NEED_WAKEUP’ was not declared in this scope #336

Open
MaoZiming opened this issue Apr 11, 2024 · 2 comments
Open

Comments

@MaoZiming
Copy link

After I run ./getdeps.sh, I got:

/home/maoziming/mvfst/quic/xsk/XskSender.cpp: In member function ‘facebook::xdpsocket::FlushResult facebook::xdpsocket::XskSender::flush()’:
/home/maoziming/mvfst/quic/xsk/XskSender.cpp:231:65: error: ‘struct xdp_ring_offset’ has no member named ‘flags’
   auto* txFlagsPtr = (uint32_t*)((char*)txMap_ + xskOffsets_.tx.flags);
                                                                 ^~~~~
/home/maoziming/mvfst/quic/xsk/XskSender.cpp:233:16: error: ‘XDP_RING_NEED_WAKEUP’ was not declared in this scope
   if ((flags & XDP_RING_NEED_WAKEUP) == 0) {
                ^~~~~~~~~~~~~~~~~~~~
[5/9] Linking CXX executable quic/state/stream/test/StreamStateMachineTest
ninja: build stopped: subcommand failed.
Command '['/home/maoziming/mvfst/_build/cmake-pNzDN3_ukf8D67iTaRoPsUjLvudo8Zitt6QyfUML6Fw/bin/cmake', '--build', '/tmp/fbcode_builder_getdeps-ZhomeZmaozimingZmvfstZbuildZfbcode_builder/build/mvfst', '--target', 'install', '--config', 'RelWithDebInfo', '-j', '8']' returned non-zero exit status 1.
!! Failed

I am on Debian GNU/Linux 10 (buster)

@codeDing18
Copy link

I have the same problem.How did you solve it?

@ViggoC
Copy link

ViggoC commented Aug 5, 2024

@MaoZiming @codeDing18 I guess it's related to linux kernel version, the flags is introduced in 5.4 torvalds/linux@77cd0d7

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

No branches or pull requests

3 participants