Skip to content
  • Philippe Gerum's avatar
    net/rtpc: fix non-rt signal overflow · 9f271d91
    Philippe Gerum authored and Jan Kiszka's avatar Jan Kiszka committed
    
    
    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 call
    completion queue transitions from empty to non-empty state.
    
    Signed-off-by: default avatarPhilippe Gerum <rpm@xenomai.org>
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    9f271d91