.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /**************************************************************************** |
---|
2 | 3 | * Driver for Solarflare network controllers and boards |
---|
3 | 4 | * Copyright 2005-2006 Fen Systems Ltd. |
---|
4 | 5 | * Copyright 2006-2012 Solarflare Communications Inc. |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify it |
---|
7 | | - * under the terms of the GNU General Public License version 2 as published |
---|
8 | | - * by the Free Software Foundation, incorporated herein by reference. |
---|
9 | 6 | */ |
---|
10 | 7 | |
---|
11 | 8 | #ifndef EFX_SELFTEST_H |
---|
.. | .. |
---|
18 | 15 | */ |
---|
19 | 16 | |
---|
20 | 17 | struct efx_loopback_self_tests { |
---|
21 | | - int tx_sent[EFX_TXQ_TYPES]; |
---|
22 | | - int tx_done[EFX_TXQ_TYPES]; |
---|
| 18 | + int tx_sent[EFX_MAX_TXQ_PER_CHANNEL]; |
---|
| 19 | + int tx_done[EFX_MAX_TXQ_PER_CHANNEL]; |
---|
23 | 20 | int rx_good; |
---|
24 | 21 | int rx_bad; |
---|
25 | 22 | }; |
---|
.. | .. |
---|
48 | 45 | int pkt_len); |
---|
49 | 46 | int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests, |
---|
50 | 47 | unsigned flags); |
---|
| 48 | +void efx_selftest_async_init(struct efx_nic *efx); |
---|
51 | 49 | void efx_selftest_async_start(struct efx_nic *efx); |
---|
52 | 50 | void efx_selftest_async_cancel(struct efx_nic *efx); |
---|
53 | | -void efx_selftest_async_work(struct work_struct *data); |
---|
54 | 51 | |
---|
55 | 52 | #endif /* EFX_SELFTEST_H */ |
---|