]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-smc-stats'
authorDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 19:54:02 +0000 (12:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 19:54:02 +0000 (12:54 -0700)
commit755dcf38e9b30f47f6fc0ab7e1a2b79824099d29
treee1cb5ba24809456bb50c4134dcfa9d826ca458aa
parent655d7dbdd548da080d46baf88d82aa574e9125b2
parent30fce961ec5a948c44ee05a55c369391e239d20e
Merge branch 'net-smc-stats'

Karsten Graul says:

====================
net/smc: Add SMC statistic support

Please apply the following patch series for smc to netdev's net-next tree.

This v2 is a resend of the code contained in v1 but with an updated
cover letter to describe why we have chosen to use the generic netlink
mechanism to access the smc protocol's statistic data.

The patchset adds statistic support to the SMC protocol. Per-cpu
variables are used to collect the statistic information for better
performance and for reducing concurrency pitfalls. The code that is
collecting statistic data is implemented in macros to increase code
reuse and readability.
The generic netlink mechanism in SMC is extended to provide the
collected statistics to userspace.
Network namespace awareness is also part of the statistics
implementation.

SMC is a protocol interacting with PCI devices (like RoCE Cards) and
runs on top of the TCP protocol. As SMC is a network protocol and not
an ethernet device driver, we decided to use the generic netlink
interface. This should be comparable to what other protocols in the
net subsystem like tipc, ncsi, ieee802154 or tcp, et al, do.
There is already an established internal generic netlink interface
mechanism in SMC which is used to collect SMC Protocol internal
information. This patchset extends that existing mechanism.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>