numam-dpdk/drivers/net/sfc/sfc_service.h
Andrew Rybchenko 7c041f971b net/sfc: add NUMA-aware registry of service logical cores
The driver requires service cores for housekeeping. Share these
cores for many adapters and various purposes to avoid extra CPU
overhead.

Since housekeeping services will talk to NIC, it should be possible
to choose logical core on matching NUMA node.

Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
Reviewed-by: Ivan Malov <ivan.malov@oktetlabs.ru>
2021-07-20 12:20:31 +02:00

21 lines
301 B
C

/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2020-2021 Xilinx, Inc.
*/
#ifndef _SFC_SERVICE_H
#define _SFC_SERVICE_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
uint32_t sfc_get_service_lcore(int socket_id);
#ifdef __cplusplus
}
#endif
#endif /* _SFC_SERVICE_H */