diff options
author | Alexander Skorichenko <askorichenko@netgate.com> | 2023-04-24 09:34:23 +0200 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2023-04-25 18:02:43 +0000 |
commit | 61cdc0981084f049067626b0123db700035120df (patch) | |
tree | 2aea52ebb2d553921b2c14443c3b576f96e18f62 /src/vnet/ip/icmp4.c | |
parent | 980f3fb2d3a3f62b296341cb423df6e1d93a193d (diff) |
crypto-sw-scheduler: fix interrupt mode
Type: fix
Currently sw_scheduler runs interchangeably over queues of one selected
type either ENCRYPT or DECRYPT. Then switches the type for the next run.
This works fine in polling mode as missed frames get processed on the
next run. In interrupt mode if all of the workers miss a frame on the
first run the interrupt flag is lowered so the frame remains pending in
queues waiting for another crypto event to raise the interrupt.
With this fix force sw_scheduler in interrupt mode check the second half
of the queues if the first pass returned no results. This guarantees a
pending frame gets into processing before interrupt is reset.
Change-Id: I7e91d125702336eba72c6a3abaeabcae010d396a
Signed-off-by: Alexander Skorichenko <askorichenko@netgate.com>
Diffstat (limited to 'src/vnet/ip/icmp4.c')
0 files changed, 0 insertions, 0 deletions