Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

RDMA/iw_cxgb4: Add missing error codes for act open cmd

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>

authored by

Hariprasad S and committed by
Doug Ledford
4c72efef bce2841f

+10 -3
+8 -3
drivers/infiniband/hw/cxgb4/cm.c
··· 2016 2016 } 2017 2017 2018 2018 /* 2019 - * Return whether a failed active open has allocated a TID 2019 + * Some of the error codes above implicitly indicate that there is no TID 2020 + * allocated with the result of an ACT_OPEN. We use this predicate to make 2021 + * that explicit. 2020 2022 */ 2021 2023 static inline int act_open_has_tid(int status) 2022 2024 { 2023 - return status != CPL_ERR_TCAM_FULL && status != CPL_ERR_CONN_EXIST && 2024 - status != CPL_ERR_ARP_MISS; 2025 + return (status != CPL_ERR_TCAM_PARITY && 2026 + status != CPL_ERR_TCAM_MISS && 2027 + status != CPL_ERR_TCAM_FULL && 2028 + status != CPL_ERR_CONN_EXIST_SYNRECV && 2029 + status != CPL_ERR_CONN_EXIST); 2025 2030 } 2026 2031 2027 2032 /* Returns whether a CPL status conveys negative advice.
+2
drivers/net/ethernet/chelsio/cxgb4/t4_msg.h
··· 104 104 105 105 enum CPL_error { 106 106 CPL_ERR_NONE = 0, 107 + CPL_ERR_TCAM_PARITY = 1, 108 + CPL_ERR_TCAM_MISS = 2, 107 109 CPL_ERR_TCAM_FULL = 3, 108 110 CPL_ERR_BAD_LENGTH = 15, 109 111 CPL_ERR_BAD_ROUTE = 18,