hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* 10G controller driver for Samsung SoCs
23 *
34 * Copyright (C) 2013 Samsung Electronics Co., Ltd.
45 * http://www.samsung.com
56 *
67 * Author: Siva Reddy Kallam <siva.kallam@samsung.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -33,7 +30,7 @@
3330 #define SXGBE_STAT(m) \
3431 { \
3532 #m, \
36
- FIELD_SIZEOF(struct sxgbe_extra_stats, m), \
33
+ sizeof_field(struct sxgbe_extra_stats, m), \
3734 offsetof(struct sxgbe_priv_data, xstats.m) \
3835 }
3936
....@@ -319,7 +316,7 @@
319316 case TCP_V4_FLOW:
320317 case UDP_V4_FLOW:
321318 cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
322
- /* Fall through */
319
+ fallthrough;
323320 case SCTP_V4_FLOW:
324321 case AH_ESP_V4_FLOW:
325322 case AH_V4_FLOW:
....@@ -330,7 +327,7 @@
330327 case TCP_V6_FLOW:
331328 case UDP_V6_FLOW:
332329 cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
333
- /* Fall through */
330
+ fallthrough;
334331 case SCTP_V6_FLOW:
335332 case AH_ESP_V6_FLOW:
336333 case AH_V6_FLOW:
....@@ -479,6 +476,7 @@
479476 }
480477
481478 static const struct ethtool_ops sxgbe_ethtool_ops = {
479
+ .supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS,
482480 .get_drvinfo = sxgbe_getdrvinfo,
483481 .get_msglevel = sxgbe_getmsglevel,
484482 .set_msglevel = sxgbe_setmsglevel,