]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tsnep: Fix XDP_RING_NEED_WAKEUP for empty fill ring
authorGerhard Engleder <gerhard@engleder-embedded.com>
Tue, 23 Jan 2024 20:09:18 +0000 (21:09 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 25 Jan 2024 10:59:42 +0000 (11:59 +0100)
commit9a91c05f4bd6f6bdd6b8f90445e0da92e3ac956c
tree022a849bbb30bbceb8bc63fc5d0e8d136cebf665
parent50bad6f797d4d501c5ef416a6f92e1912ab5aa8b
tsnep: Fix XDP_RING_NEED_WAKEUP for empty fill ring

The fill ring of the XDP socket may contain not enough buffers to
completey fill the RX queue during socket creation. In this case the
flag XDP_RING_NEED_WAKEUP is not set as this flag is only set if the RX
queue is not completely filled during polling.

Set XDP_RING_NEED_WAKEUP flag also if RX queue is not completely filled
during XDP socket creation.

Fixes: 3fc2333933fd ("tsnep: Add XDP socket zero-copy RX support")
Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/engleder/tsnep_main.c