forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/net/ethernet/sfc/falcon/farch.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /****************************************************************************
23 * Driver for Solarflare network controllers and boards
34 * Copyright 2005-2006 Fen Systems Ltd.
45 * Copyright 2006-2013 Solarflare Communications Inc.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License version 2 as published
8
- * by the Free Software Foundation, incorporated herein by reference.
96 */
107
118 #include <linux/bitops.h>
....@@ -1051,10 +1048,10 @@
10511048 switch (rx_ev_hdr_type) {
10521049 case FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_TCP:
10531050 flags |= EF4_RX_PKT_TCP;
1054
- /* fall through */
1051
+ fallthrough;
10551052 case FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_UDP:
10561053 flags |= EF4_RX_PKT_CSUMMED;
1057
- /* fall through */
1054
+ fallthrough;
10581055 case FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_OTHER:
10591056 case FSE_AZ_RX_EV_HDR_TYPE_OTHER:
10601057 break;
....@@ -1312,7 +1309,7 @@
13121309 if (efx->type->handle_global_event &&
13131310 efx->type->handle_global_event(channel, &event))
13141311 break;
1315
- /* else fall through */
1312
+ fallthrough;
13161313 default:
13171314 netif_err(channel->efx, hw, channel->efx->net_dev,
13181315 "channel %d unknown event type %d (data "
....@@ -1981,7 +1978,7 @@
19811978 EF4_FILTER_MATCH_LOC_HOST | EF4_FILTER_MATCH_LOC_PORT |
19821979 EF4_FILTER_MATCH_REM_HOST | EF4_FILTER_MATCH_REM_PORT):
19831980 is_full = true;
1984
- /* fall through */
1981
+ fallthrough;
19851982 case (EF4_FILTER_MATCH_ETHER_TYPE | EF4_FILTER_MATCH_IP_PROTO |
19861983 EF4_FILTER_MATCH_LOC_HOST | EF4_FILTER_MATCH_LOC_PORT): {
19871984 __be32 rhost, host1, host2;
....@@ -2032,7 +2029,7 @@
20322029
20332030 case EF4_FILTER_MATCH_LOC_MAC | EF4_FILTER_MATCH_OUTER_VID:
20342031 is_full = true;
2035
- /* fall through */
2032
+ fallthrough;
20362033 case EF4_FILTER_MATCH_LOC_MAC:
20372034 spec->type = (is_full ? EF4_FARCH_FILTER_MAC_FULL :
20382035 EF4_FARCH_FILTER_MAC_WILD);
....@@ -2079,7 +2076,7 @@
20792076 case EF4_FARCH_FILTER_TCP_FULL:
20802077 case EF4_FARCH_FILTER_UDP_FULL:
20812078 is_full = true;
2082
- /* fall through */
2079
+ fallthrough;
20832080 case EF4_FARCH_FILTER_TCP_WILD:
20842081 case EF4_FARCH_FILTER_UDP_WILD: {
20852082 __be32 host1, host2;
....@@ -2123,7 +2120,7 @@
21232120
21242121 case EF4_FARCH_FILTER_MAC_FULL:
21252122 is_full = true;
2126
- /* fall through */
2123
+ fallthrough;
21272124 case EF4_FARCH_FILTER_MAC_WILD:
21282125 gen_spec->match_flags = EF4_FILTER_MATCH_LOC_MAC;
21292126 if (is_full)