aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/netmap.c
diff options
context:
space:
mode:
authorWei Hu <whu@FreeBSD.org>2023-08-28 09:15:16 +0000
committerWei Hu <whu@FreeBSD.org>2023-08-28 09:15:16 +0000
commite4e11c1d07f5d58ff8cf4e07ac8f61eecbbb5417 (patch)
tree213f1b9b520e9aa139251e43e4c4a7d0a1a70449 /sys/dev/netmap/netmap.c
parent315ee00fa9616b0a192b6834911f98bcf5316a6b (diff)
mana: batch ringing RX queue doorbell on receiving packets
It's inefficient to ring the doorbell page every time a WQE is posted to the received queue. Excessive MMIO writes result in CPU spending more time waiting on LOCK instructions (atomic operations), resulting in poor scaling performance. Move the code for ringing doorbell page to where after we have posted all WQEs to the receive queue in mana_poll_rx_cq(). In addition, use the correct WQE count for ringing RQ doorbell. The hardware specification specifies that WQE_COUNT should set to 0 for the Receive Queue. Although currently the hardware doesn't enforce the check, in the future releases it may check on this value. Tested by: whu MFC after: 1 week Sponsored by: Microsoft
Diffstat (limited to 'sys/dev/netmap/netmap.c')
0 files changed, 0 insertions, 0 deletions