• Philippe Gerum's avatar
    net/cap: fix non-rt signal overflow · b2f253fd
    Philippe Gerum authored
    rtdm_nrtsig_pend() is based on ipipe_post_root_work(), which keeps a
    copy of every request descriptor internally until it is consumed by
    the secondary mode handler. Triggering rtdm_nrtsig_pend() every time a
    packet is relayed from the stack to the tap device may cause such
    request buffer to overflow under pressure.
    
    To address this issue, trigger the non-rt signal only when the RX
    queue transitions from empty to non-empty state as a result of
    enqueuing the next skb.
    Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
    Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
    b2f253fd
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
demo Loading commit data...
doc Loading commit data...
include Loading commit data...
kernel Loading commit data...
lib Loading commit data...
scripts Loading commit data...
testsuite Loading commit data...
utils Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
configure.ac Loading commit data...