net: hsr/prp: add procfs interface for snmp agent interface
implement a simple procfs interface to support snmpd agent set/get command to implement iec62439 mibs for LRE. This is done similar to ip/udp/tcp mibs of mibii for stats and such. procfs files are created under the /proc/<interface-name> folder. This patch also add some missing hsr/prp modes so that same can be set through SNMP interface. The format of print to console is kept same as the current debugfs output format expected by snmpd so that same text parser can be re-used at snmpd even after this migration. Note that this is a temporary interface and is not accepted by netdev community at LKML and may change in the future. Signed-off-by:Murali Karicheri <m-karicheri2@ti.com> Reviewed-by:
Grygorii Strashko <grygorii.strashko@ti.com>
Showing
- net/hsr/Makefile 1 addition, 0 deletionsnet/hsr/Makefile
- net/hsr/hsr_debugfs.c 28 additions, 52 deletionsnet/hsr/hsr_debugfs.c
- net/hsr/hsr_device.c 22 additions, 5 deletionsnet/hsr/hsr_device.c
- net/hsr/hsr_forward.c 81 additions, 51 deletionsnet/hsr/hsr_forward.c
- net/hsr/hsr_main.h 37 additions, 2 deletionsnet/hsr/hsr_main.h
- net/hsr/hsr_proc.c 621 additions, 0 deletionsnet/hsr/hsr_proc.c
Please register or sign in to comment