forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/ethernet/brocade/bna/bnad_ethtool.c
....@@ -1,14 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Linux network driver for QLogic BR-series Converged Network Adapter.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms of the GNU General Public License (GPL) Version 2 as
6
- * published by the Free Software Foundation
7
- *
8
- * This program is distributed in the hope that it will be useful, but
9
- * WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
- * General Public License for more details.
124 */
135 /*
146 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
....@@ -292,7 +284,6 @@
292284 unsigned long flags;
293285
294286 strlcpy(drvinfo->driver, BNAD_NAME, sizeof(drvinfo->driver));
295
- strlcpy(drvinfo->version, BNAD_VERSION, sizeof(drvinfo->version));
296287
297288 ioc_attr = kzalloc(sizeof(*ioc_attr), GFP_KERNEL);
298289 if (ioc_attr) {
....@@ -1124,6 +1115,9 @@
11241115 }
11251116
11261117 static const struct ethtool_ops bnad_ethtool_ops = {
1118
+ .supported_coalesce_params = ETHTOOL_COALESCE_USECS |
1119
+ ETHTOOL_COALESCE_TX_MAX_FRAMES |
1120
+ ETHTOOL_COALESCE_USE_ADAPTIVE_RX,
11271121 .get_drvinfo = bnad_get_drvinfo,
11281122 .get_wol = bnad_get_wol,
11291123 .get_link = ethtool_op_get_link,