forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * 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.
74 */
85
96 /* ETHTOOL Support for VNIC_VF Device*/
....@@ -19,7 +16,6 @@
1916 #include "../common/cavium_ptp.h"
2017
2118 #define DRV_NAME "nicvf"
22
-#define DRV_VERSION "1.0"
2319
2420 struct nicvf_stat {
2521 char name[ETH_GSTRING_LEN];
....@@ -195,7 +191,6 @@
195191 struct nicvf *nic = netdev_priv(netdev);
196192
197193 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
198
- strlcpy(info->version, DRV_VERSION, sizeof(info->version));
199194 strlcpy(info->bus_info, pci_name(nic->pdev), sizeof(info->bus_info));
200195 }
201196
....@@ -527,7 +522,7 @@
527522 case SCTP_V4_FLOW:
528523 case SCTP_V6_FLOW:
529524 info->data |= RXH_L4_B_0_1 | RXH_L4_B_2_3;
530
- /* Fall through */
525
+ fallthrough;
531526 case IPV4_FLOW:
532527 case IPV6_FLOW:
533528 info->data |= RXH_IP_SRC | RXH_IP_DST;