Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 2021 21:46:37 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Victor Gamov <vit@otcnet.ru>, freebsd-net@freebsd.org
Subject:   Re: 'dropped due to full socket buffers' by SNMP
Message-ID:  <f469205d-3f06-ad53-7d02-dbef8c6cb572@grosbein.net>
In-Reply-To: <888c8e91-c8f2-ad4b-9fcf-64c09432f2d5@otcnet.ru>
References:  <388da9a7-7b89-89b2-54eb-17d0e818c924@otcnet.ru> <4e41c1d2-19bc-0345-0b03-526e4cb785c7@otcnet.ru> <b279e676-c789-2978-98a0-b8a4b164a111@grosbein.net> <a69d872a-f21e-de66-7677-58beccb0f023@otcnet.ru> <6c780827-e764-8053-356b-a921e0892c15@grosbein.net> <fef04bda-6aa0-4a80-8999-867b9f37d766@otcnet.ru> <7e51a6be-aea1-51c6-c0bd-10d00c19d5d3@grosbein.net> <888c8e91-c8f2-ad4b-9fcf-64c09432f2d5@otcnet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
05.01.2021 16:39, Victor Gamov wrote:

>>> As I understand hw.ix.flow_control=3 to allow flow-control for negotiation.
>>> Real PAUSE setting will be set during negotiation.
>>
>> At the moment of congestion.
> 
> As I understand PAUSE feature negotiated during auto-negotiation process. If flow-control disabled on one side (switch for example) then other side (host) will not to use this feature too.  Is it right?

Modulo firmware bugs.

>>>   So where I can find active flow-control setting for host interface?
>> Can't check for ix just now, but for em(4) there is sysctl dev.em.0.fc.
>> It should be similar for ix.
> I have hw.ix.flow_control=3 (what does is it means ?) and dev.ix.0.fc=3 (and what does is it means?)

/* Flow Control Settings */
enum ixgbe_fc_mode {
        ixgbe_fc_none = 0,
        ixgbe_fc_rx_pause,
        ixgbe_fc_tx_pause,
        ixgbe_fc_full,
        ixgbe_fc_default
};

So, ixgbe_fc_full = 3 (full rx/tx flow control enabled, see sys/dev/ixgbe/ixgbe_type.h).
 
> Back to my original question: is it possible to monitor `netstat -n -p udp -f inet -s` counters by SNMP?

There is no standard MIB for these counters but you may always export it with net-mgmt/bsnmp-ucd port
and custom OIDs if you use stock bsnmpd (bsnmp-ucd man page has an example).
There is similar possibility for net-snmpd.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f469205d-3f06-ad53-7d02-dbef8c6cb572>