.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* 10G controller driver for Samsung SoCs |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (C) 2013 Samsung Electronics Co., Ltd. |
---|
4 | 5 | * http://www.samsung.com |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
11 | 8 | */ |
---|
12 | 9 | |
---|
13 | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
33 | 30 | #define SXGBE_STAT(m) \ |
---|
34 | 31 | { \ |
---|
35 | 32 | #m, \ |
---|
36 | | - FIELD_SIZEOF(struct sxgbe_extra_stats, m), \ |
---|
| 33 | + sizeof_field(struct sxgbe_extra_stats, m), \ |
---|
37 | 34 | offsetof(struct sxgbe_priv_data, xstats.m) \ |
---|
38 | 35 | } |
---|
39 | 36 | |
---|
.. | .. |
---|
319 | 316 | case TCP_V4_FLOW: |
---|
320 | 317 | case UDP_V4_FLOW: |
---|
321 | 318 | cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; |
---|
322 | | - /* Fall through */ |
---|
| 319 | + fallthrough; |
---|
323 | 320 | case SCTP_V4_FLOW: |
---|
324 | 321 | case AH_ESP_V4_FLOW: |
---|
325 | 322 | case AH_V4_FLOW: |
---|
.. | .. |
---|
330 | 327 | case TCP_V6_FLOW: |
---|
331 | 328 | case UDP_V6_FLOW: |
---|
332 | 329 | cmd->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; |
---|
333 | | - /* Fall through */ |
---|
| 330 | + fallthrough; |
---|
334 | 331 | case SCTP_V6_FLOW: |
---|
335 | 332 | case AH_ESP_V6_FLOW: |
---|
336 | 333 | case AH_V6_FLOW: |
---|
.. | .. |
---|
479 | 476 | } |
---|
480 | 477 | |
---|
481 | 478 | static const struct ethtool_ops sxgbe_ethtool_ops = { |
---|
| 479 | + .supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS, |
---|
482 | 480 | .get_drvinfo = sxgbe_getdrvinfo, |
---|
483 | 481 | .get_msglevel = sxgbe_getmsglevel, |
---|
484 | 482 | .set_msglevel = sxgbe_setmsglevel, |
---|