net/sfc: reserve internal Rx queue for counters
authorIgor Romanov <igor.romanov@oktetlabs.ru>
Fri, 2 Jul 2021 08:39:40 +0000 (11:39 +0300)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 20 Jul 2021 10:20:31 +0000 (12:20 +0200)
commit983ce116c26172d454d09e905bfaa1acfcb24415
treedff67233950934d17c09f8a3d95b0f62161773de
parent7c041f971ba7dc6a2228834c1aae1707837aae60
net/sfc: reserve internal Rx queue for counters

MAE delivers counters data as special packets via dedicated Rx queue.
Reserve an RxQ so that it does not interfere with ethdev Rx queues.
A routine will be added later to handle these packets.

There is no point to reserve the queue if no service cores are
available and counters cannot be used.

Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
Reviewed-by: Ivan Malov <ivan.malov@oktetlabs.ru>
drivers/net/sfc/meson.build
drivers/net/sfc/sfc.c
drivers/net/sfc/sfc.h
drivers/net/sfc/sfc_dp.h
drivers/net/sfc/sfc_ev.h
drivers/net/sfc/sfc_mae.c
drivers/net/sfc/sfc_mae_counter.c [new file with mode: 0644]
drivers/net/sfc/sfc_mae_counter.h [new file with mode: 0644]
drivers/net/sfc/sfc_rx.c