On Mon, 10 Aug 2020 15:55:35 -0400 Murali Karicheri wrote:
> Hi Netdev experts,
> 
> IEC-62439 defines following LRE stats:-
> 
>       "lreTxA",
>       "lreTxB",
>       "lreTxC",
>       "lreErrWrongLanA",
>       "lreErrWrongLanB",
>       "lreErrWrongLanC",
>       "lreRxA",
>       "lreRxB",
>       "lreRxC",
>       "lreErrorsA",
>       "lreErrorsB",
>       "lreErrorsC",
>       "lreNodes",
>       "lreProxyNodes",
>       "lreUniqueRxA",
>       "lreUniqueRxB",
>       "lreUniqueRxC",
>       "lreDuplicateRxA",
>       "lreDuplicateRxB",
>       "lreDuplicateRxC",
>       "lreMultiRxA",
>       "lreMultiRxB",
>       "lreMultiRxC",
>       "lreOwnRxA",
>       "lreOwnRxB",
> 
> These stats are defined also in the IEC-62439 MIB definition. So
> this MIB support is required in Net-SNMP and that requires a proper
> kernel interface to pull the values from the HSR or PRP
> LRE (Link Redundancy Entity). What is the right interface for this?
> Internally TI uses /proc interface for this. But want to check with
> community before sending a patch for this. One choice is ethtool for
> this. Or something else? Would appreciate if someone can clarify so
> that I can work towards a patch for the same.

Are these collected by HW, or also by the bridge code?

Adding a new IFLA_STATS_LINK_* may be the right choice.

Reply via email to