mvfst icon indicating copy to clipboard operation
mvfst copied to clipboard

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

Open MaoZiming opened this issue 10 months ago • 2 comments

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)

MaoZiming avatar Apr 11 '24 06:04 MaoZiming

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

codeDing18 avatar Jul 29 '24 06:07 codeDing18

@MaoZiming @codeDing18 I guess it's related to linux kernel version, the flags is introduced in 5.4 https://github.com/torvalds/linux/commit/77cd0d7b3f257fd0e3096b4fdcff1a7d38e99e10

ViggoC avatar Aug 05 '24 05:08 ViggoC