nfp: bpf: add short busy wait for FW replies
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 18 Jan 2018 03:13:32 +0000 (19:13 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 18 Jan 2018 21:54:26 +0000 (22:54 +0100)
commitca027a1c45e30d89c5cc6dcacbdcea74e1ff65fc
treeefd0d8d3cb68686132ce8adea69fddd8916e7477
parent7fedbb7c5a7c4bda418bc1056c06c81db36e4299
nfp: bpf: add short busy wait for FW replies

Scheduling out and in for every FW message can slow us down
unnecessarily.  Our experiments show that even under heavy load
the FW responds to 99.9% messages within 200 us.  Add a short
busy wait before entering the wait queue.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/netronome/nfp/bpf/cmsg.c