mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net/smc: Add netlink support for SMC fallback statistics
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>
This commit is contained in:
parent
8c40602b4b
commit
f0dd7bf5e3
5 changed files with 113 additions and 1 deletions
|
@ -61,6 +61,11 @@ static const struct genl_ops smc_gen_nl_ops[] = {
|
|||
/* can be retrieved by unprivileged users */
|
||||
.dumpit = smc_nl_get_stats,
|
||||
},
|
||||
{
|
||||
.cmd = SMC_NETLINK_GET_FBACK_STATS,
|
||||
/* can be retrieved by unprivileged users */
|
||||
.dumpit = smc_nl_get_fback_stats,
|
||||
},
|
||||
};
|
||||
|
||||
static const struct nla_policy smc_gen_nl_policy[2] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue