mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 21:32:06 +07:00
c30b70deb5
This commit adds socket diagnostics capability for AF_TIPC in netlink family NETLINK_SOCK_DIAG in a new kernel module (diag.ko). The following are key design considerations: - config TIPC_DIAG has default y, like INET_DIAG. - only requests with flag NLM_F_DUMP is supported (dump all). - tipc_sock_diag_req message is introduced to send filter parameters. - the response attributes are of TLV, some nested. To avoid exposing data structures between diag and tipc modules and avoid code duplication, the following additions are required: - export tipc_nl_sk_walk function to reuse socket iterator. - export tipc_sk_fill_sock_diag to fill the tipc diag attributes. - create a sock_diag response message in __tipc_add_sock_diag defined in diag.c and use the above exported tipc_sk_fill_sock_diag to fill response. Acked-by: Jon Maloy <jon.maloy@ericsson.com> Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: GhantaKrishnamurthy MohanKrishna <mohan.krishna.ghanta.krishnamurthy@ericsson.com> Signed-off-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
#
|
|
# TIPC configuration
|
|
#
|
|
|
|
menuconfig TIPC
|
|
tristate "The TIPC Protocol"
|
|
depends on INET
|
|
---help---
|
|
The Transparent Inter Process Communication (TIPC) protocol is
|
|
specially designed for intra cluster communication. This protocol
|
|
originates from Ericsson where it has been used in carrier grade
|
|
cluster applications for many years.
|
|
|
|
For more information about TIPC, see http://tipc.sourceforge.net.
|
|
|
|
This protocol support is also available as a module ( = code which
|
|
can be inserted in and removed from the running kernel whenever you
|
|
want). The module will be called tipc. If you want to compile it
|
|
as a module, say M here and read <file:Documentation/kbuild/modules.txt>.
|
|
|
|
If in doubt, say N.
|
|
|
|
config TIPC_MEDIA_IB
|
|
bool "InfiniBand media type support"
|
|
depends on TIPC && INFINIBAND_IPOIB
|
|
help
|
|
Saying Y here will enable support for running TIPC on
|
|
IP-over-InfiniBand devices.
|
|
config TIPC_MEDIA_UDP
|
|
bool "IP/UDP media type support"
|
|
depends on TIPC
|
|
select NET_UDP_TUNNEL
|
|
help
|
|
Saying Y here will enable support for running TIPC over IP/UDP
|
|
bool
|
|
default y
|
|
|
|
config TIPC_DIAG
|
|
tristate "TIPC: socket monitoring interface"
|
|
depends on TIPC
|
|
default y
|
|
---help---
|
|
Support for TIPC socket monitoring interface used by ss tool.
|
|
If unsure, say Y.
|