hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/target/iscsi/cxgbit/cxgbit_main.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2016 Chelsio Communications, Inc.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85
96 #define DRV_NAME "cxgbit"
....@@ -447,7 +444,7 @@
447444 case CPL_RX_ISCSI_DDP:
448445 case CPL_FW4_ACK:
449446 lro_flush = false;
450
- /* fall through */
447
+ fallthrough;
451448 case CPL_ABORT_RPL_RSS:
452449 case CPL_PASS_ESTABLISH:
453450 case CPL_PEER_CLOSE:
....@@ -592,7 +589,8 @@
592589 iscsi_app = &dcb_work->dcb_app;
593590
594591 if (iscsi_app->dcbx & DCB_CAP_DCBX_VER_IEEE) {
595
- if (iscsi_app->app.selector != IEEE_8021QAZ_APP_SEL_ANY)
592
+ if ((iscsi_app->app.selector != IEEE_8021QAZ_APP_SEL_STREAM) &&
593
+ (iscsi_app->app.selector != IEEE_8021QAZ_APP_SEL_ANY))
596594 goto out;
597595
598596 priority = iscsi_app->app.priority;
....@@ -678,7 +676,7 @@
678676 .iscsit_get_r2t_ttt = cxgbit_get_r2t_ttt,
679677 .iscsit_get_rx_pdu = cxgbit_get_rx_pdu,
680678 .iscsit_validate_params = cxgbit_validate_params,
681
- .iscsit_release_cmd = cxgbit_release_cmd,
679
+ .iscsit_unmap_cmd = cxgbit_unmap_cmd,
682680 .iscsit_aborted_task = iscsit_aborted_task,
683681 .iscsit_get_sup_prot_ops = cxgbit_get_sup_prot_ops,
684682 };
....@@ -710,7 +708,7 @@
710708 pr_info("%s dcb enabled.\n", DRV_NAME);
711709 register_dcbevent_notifier(&cxgbit_dcbevent_nb);
712710 #endif
713
- BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, cb) <
711
+ BUILD_BUG_ON(sizeof_field(struct sk_buff, cb) <
714712 sizeof(union cxgbit_skb_cb));
715713 return 0;
716714 }