.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2015 Cavium, Inc. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify it |
---|
5 | | - * under the terms of version 2 of the GNU General Public License |
---|
6 | | - * as published by the Free Software Foundation. |
---|
7 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | /* ETHTOOL Support for VNIC_VF Device*/ |
---|
.. | .. |
---|
19 | 16 | #include "../common/cavium_ptp.h" |
---|
20 | 17 | |
---|
21 | 18 | #define DRV_NAME "nicvf" |
---|
22 | | -#define DRV_VERSION "1.0" |
---|
23 | 19 | |
---|
24 | 20 | struct nicvf_stat { |
---|
25 | 21 | char name[ETH_GSTRING_LEN]; |
---|
.. | .. |
---|
195 | 191 | struct nicvf *nic = netdev_priv(netdev); |
---|
196 | 192 | |
---|
197 | 193 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
---|
198 | | - strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
---|
199 | 194 | strlcpy(info->bus_info, pci_name(nic->pdev), sizeof(info->bus_info)); |
---|
200 | 195 | } |
---|
201 | 196 | |
---|
.. | .. |
---|
527 | 522 | case SCTP_V4_FLOW: |
---|
528 | 523 | case SCTP_V6_FLOW: |
---|
529 | 524 | info->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3; |
---|
530 | | - /* Fall through */ |
---|
| 525 | + fallthrough; |
---|
531 | 526 | case IPV4_FLOW: |
---|
532 | 527 | case IPV6_FLOW: |
---|
533 | 528 | info->data |= RXH_IP_SRC | RXH_IP_DST; |
---|