]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Add ethtool mac loopback self test (reapply).
authorMichael Chan <michael.chan@broadcom.com>
Tue, 4 Apr 2017 22:14:13 +0000 (18:14 -0400)
committerBrian Maly <brian.maly@oracle.com>
Mon, 8 Oct 2018 16:20:37 +0000 (12:20 -0400)
commit1855e0b9a3fd61bcddff0d6a0c7a911c511c57dc
treef3200a6dfbb8db4e4a2d4d2de127bd8091eec3d2
parent6114577f7fdafbed8097b76f0e5bfe842edf75b6
bnxt_en: Add ethtool mac loopback self test (reapply).

The mac loopback self test operates in polling mode.  To support that,
we need to add functions to open and close the NIC half way.  The half
open mode allows the rings to operate without IRQ and NAPI.  We
use the XDP transmit function to send the loopback packet.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ Upstream commit f7dc1ea6c4c1f31371b7098d6fae0d49dc6cdff1 ]
Orabug: 27988326

Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h