vdpa/snet: use likely/unlikely macros in hot functions
authorAlvaro Karsz <alvaro.karsz@solid-run.com>
Sun, 9 Apr 2023 12:02:42 +0000 (15:02 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 21 Apr 2023 07:02:35 +0000 (03:02 -0400)
commit5b250fac7c76b670dd1b28b67f1a91a1907bc117
tree128053f329f4532d651f5077e9bdc9f9e095a502
parent51b6e6c1c8e382c50fe88a04e25d326ceff74f89
vdpa/snet: use likely/unlikely macros in hot functions

- kick callback: most likely that the VQ is ready.
- interrupt handlers: most likely that the callback is not NULL.

Signed-off-by: Alvaro Karsz <alvaro.karsz@solid-run.com>
Message-Id: <20230409120242.3460074-1-alvaro.karsz@solid-run.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/solidrun/snet_main.c