]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cxgbe(4): Fix stats collection for ports with port_id != tx_chan
authorNavdeep Parhar <np@FreeBSD.org>
Mon, 3 Jan 2022 21:31:46 +0000 (13:31 -0800)
committerNavdeep Parhar <np@FreeBSD.org>
Mon, 3 Jan 2022 23:24:34 +0000 (15:24 -0800)
commitbbab9ab5796028e6ef9d765bfd307936bde14e89
tree0fcb9ada062107f9e649cc253f78e76c71b387bd
parentf87818eacfa1632c31a225e6852805be4f96d0e5
cxgbe(4): Fix stats collection for ports with port_id != tx_chan

This fixes a driver panic during stats collection when a port's id does
not match its tx channel.  The bug affected only the T580 card running
with a non-default VPD.

Reported by: Suhas Lokesha @ Chelsio
MFC after: 1 week
Sponsored by: Chelsio Communications
sys/dev/cxgbe/common/t4_hw.c
sys/dev/cxgbe/t4_main.c