| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | |
|---|
| 9 | 6 | #define DRV_NAME "cxgbit" |
|---|
| .. | .. |
|---|
| 447 | 444 | case CPL_RX_ISCSI_DDP: |
|---|
| 448 | 445 | case CPL_FW4_ACK: |
|---|
| 449 | 446 | lro_flush = false; |
|---|
| 450 | | - /* fall through */ |
|---|
| 447 | + fallthrough; |
|---|
| 451 | 448 | case CPL_ABORT_RPL_RSS: |
|---|
| 452 | 449 | case CPL_PASS_ESTABLISH: |
|---|
| 453 | 450 | case CPL_PEER_CLOSE: |
|---|
| .. | .. |
|---|
| 592 | 589 | iscsi_app = &dcb_work->dcb_app; |
|---|
| 593 | 590 | |
|---|
| 594 | 591 | 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)) |
|---|
| 596 | 594 | goto out; |
|---|
| 597 | 595 | |
|---|
| 598 | 596 | priority = iscsi_app->app.priority; |
|---|
| .. | .. |
|---|
| 678 | 676 | .iscsit_get_r2t_ttt = cxgbit_get_r2t_ttt, |
|---|
| 679 | 677 | .iscsit_get_rx_pdu = cxgbit_get_rx_pdu, |
|---|
| 680 | 678 | .iscsit_validate_params = cxgbit_validate_params, |
|---|
| 681 | | - .iscsit_release_cmd = cxgbit_release_cmd, |
|---|
| 679 | + .iscsit_unmap_cmd = cxgbit_unmap_cmd, |
|---|
| 682 | 680 | .iscsit_aborted_task = iscsit_aborted_task, |
|---|
| 683 | 681 | .iscsit_get_sup_prot_ops = cxgbit_get_sup_prot_ops, |
|---|
| 684 | 682 | }; |
|---|
| .. | .. |
|---|
| 710 | 708 | pr_info("%s dcb enabled.\n", DRV_NAME); |
|---|
| 711 | 709 | register_dcbevent_notifier(&cxgbit_dcbevent_nb); |
|---|
| 712 | 710 | #endif |
|---|
| 713 | | - BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, cb) < |
|---|
| 711 | + BUILD_BUG_ON(sizeof_field(struct sk_buff, cb) < |
|---|
| 714 | 712 | sizeof(union cxgbit_skb_cb)); |
|---|
| 715 | 713 | return 0; |
|---|
| 716 | 714 | } |
|---|