• Robert Schmidt's avatar
    Call directly into scheduler from VNF, start immediately · 53172663
    Robert Schmidt authored
    The previous designs seems to do:
    
        loop {
          poll_ind_queue()
          if (msg)
            scheduler;
    
          pselect() on messages;
          handle_message {
            if slot_ind
              put_ind_queue()
          }
        }
    
    So basically, we artificially put a queue for slot indications in the
    middle, but still handle it in the same thread(!). This for some reason
    results in a big slow down if the PNF runs faster.
    
    Now, we just do pselect(), waiting for messages. We handle the slot
    indication immediately (the schedule should take some microseconds),
    then return to pselect().
    53172663
fapi_vnf_p5.c 23.6 KB