hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/net/ethernet/sfc/selftest.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /****************************************************************************
23 * Driver for Solarflare network controllers and boards
34 * Copyright 2005-2006 Fen Systems Ltd.
45 * 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.
96 */
107
118 #ifndef EFX_SELFTEST_H
....@@ -18,8 +15,8 @@
1815 */
1916
2017 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];
2320 int rx_good;
2421 int rx_bad;
2522 };
....@@ -48,8 +45,8 @@
4845 int pkt_len);
4946 int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests,
5047 unsigned flags);
48
+void efx_selftest_async_init(struct efx_nic *efx);
5149 void efx_selftest_async_start(struct efx_nic *efx);
5250 void efx_selftest_async_cancel(struct efx_nic *efx);
53
-void efx_selftest_async_work(struct work_struct *data);
5451
5552 #endif /* EFX_SELFTEST_H */