mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 21:54:06 +08:00
f0dd7bf5e3
Add support to collect more detailed SMC fallback reason statistics and provide these statistics to user space on the netlink interface. Signed-off-by: Guvenc Gulce <guvenc@linux.ibm.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
33 lines
605 B
C
33 lines
605 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Shared Memory Communications over RDMA (SMC-R) and RoCE
|
|
*
|
|
* SMC Generic netlink operations
|
|
*
|
|
* Copyright IBM Corp. 2020
|
|
*
|
|
* Author(s): Guvenc Gulce <guvenc@linux.ibm.com>
|
|
*/
|
|
|
|
#ifndef _SMC_NETLINK_H
|
|
#define _SMC_NETLINK_H
|
|
|
|
#include <net/netlink.h>
|
|
#include <net/genetlink.h>
|
|
|
|
extern struct genl_family smc_gen_nl_family;
|
|
|
|
struct smc_nl_dmp_ctx {
|
|
int pos[3];
|
|
};
|
|
|
|
static inline struct smc_nl_dmp_ctx *smc_nl_dmp_ctx(struct netlink_callback *c)
|
|
{
|
|
return (struct smc_nl_dmp_ctx *)c->ctx;
|
|
}
|
|
|
|
int smc_nl_init(void) __init;
|
|
void smc_nl_exit(void);
|
|
|
|
#endif
|