Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2018 21:30:38 +0200
From:      Marius Halden <marius.h@lden.org>
To:        Navdeep Parhar <np@FreeBSD.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: cxl nic not working after reboot
Message-ID:  <1535484638.1530345.1489178328.3374515B@webmail.messagingengine.com>
In-Reply-To: <72e8b5b8-631b-35b3-b378-804e69dd3250@FreeBSD.org>
References:  <1535379569.2132387.1487489784.45227861@webmail.messagingengine.com> <20180827151302.GA10167@ox> <1535395530.234212.1487804896.64257978@webmail.messagingengine.com> <1535448912.3229649.1488521184.1EE83C33@webmail.messagingengine.com> <3bdfa15a-1b9f-e8cd-00a5-f5fdaaa5d15e@FreeBSD.org> <1535480853.1508751.1489107768.35E0F6F1@webmail.messagingengine.com> <72e8b5b8-631b-35b3-b378-804e69dd3250@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 28, 2018, at 20:32, Navdeep Parhar wrote:
> On 8/28/18 11:27 AM, Marius Halden wrote:
> > On Tue, Aug 28, 2018, at 20:06, Navdeep Parhar wrote:
> >> On 8/28/18 2:35 AM, Marius Halden wrote:
> >>> ...
> >>>     media: Ethernet 1000baseSX <full-duplex,rxpause,txpause>
> >>>     status: active
> >>>     supported media:
> >>>         media 1000baseSX mediaopt full-duplex,rxpause,txpause
> >>>         media 1000baseSX mediaopt full-duplex,rxpause
> >>>         media 1000baseSX mediaopt full-duplex,txpause
> >>>         media 1000baseSX mediaopt full-duplex
> >>>     plugged: SFP/SFP+/SFP28 1000BASE-LX (LC)
> >>
> >> This shows that the SFP+ is recognized properly and the link is up
> >> (active).  Can you please provide the outputs of ifconfig and sysctl
> >> from when the system is in the problem state, when the link doesn't come up?
> > 
> > This is from when it's in the problem state. According to ifconfig there is link and everything looks fine to me, but it doesn't seem to pass any traffic through the interface at all.
> > 
> 
> Try passing some network traffic through the interface and look at
> before/after state of the MAC counters in sysctl dev.cxl.0.stats.  Do
> you see the tx_frames/rx_frames counter move at all?

tx_frames does move, rx_frames is stuck at zero. The following counters are non-zero and does increase when traffic is sent through the interface, all other are stuck at zero:

dev.cxl.0.stats.tx_frames_65_127: 26083
dev.cxl.0.stats.tx_frames_64: 4084
dev.cxl.0.stats.tx_mcast_frames: 26083
dev.cxl.0.stats.tx_bcast_frames: 4084
dev.cxl.0.stats.tx_frames: 30167
dev.cxl.0.stats.tx_octets: 2608846

Anything else I should look at?

-- 
Marius Halden



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1535484638.1530345.1489178328.3374515B>