From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2FC75A2EDB for ; Wed, 2 Oct 2019 21:15:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4AF351BF8D; Wed, 2 Oct 2019 21:15:45 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id C04071BF78; Wed, 2 Oct 2019 21:15:38 +0200 (CEST) In-Reply-To: <20191002191456.28488-4-rmody@marvell.com> References: <20191002191456.28488-4-rmody@marvell.com> To: test-report@dpdk.org Cc: Rasesh Mody Message-Id: <20191002191538.C04071BF78@dpdk.org> Date: Wed, 2 Oct 2019 21:15:38 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw60440 [PATCH v3 3/3] net/bnx2x: update to latest FW 7.13.11 X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Sender: "test-report" Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/60440 _coding style issues_ CHECK:CAMELCASE: Avoid CamelCase: #196: FILE: drivers/net/bnx2x/ecore_fw_defs.h:18: + (IRO[151].base + ((assertListEntry) * IRO[151].m1)) CHECK:SPACING: spaces preferred around that '>>' (ctx:VxV) #200: FILE: drivers/net/bnx2x/ecore_fw_defs.h:20: + (IRO[157].base + (((pfId)>>1) * IRO[157].m1) + (((pfId)&1) * \ ^ CHECK:SPACING: spaces preferred around that '&' (ctx:VxV) #200: FILE: drivers/net/bnx2x/ecore_fw_defs.h:20: + (IRO[157].base + (((pfId)>>1) * IRO[157].m1) + (((pfId)&1) * \ ^ CHECK:CAMELCASE: Avoid CamelCase: #200: FILE: drivers/net/bnx2x/ecore_fw_defs.h:20: + (IRO[157].base + (((pfId)>>1) * IRO[157].m1) + (((pfId)&1) * \ CHECK:SPACING: spaces preferred around that '>>' (ctx:VxV) #211: FILE: drivers/net/bnx2x/ecore_fw_defs.h:23: + (IRO[158].base + (((pfId)>>1) * IRO[158].m1) + (((pfId)&1) * \ ^ CHECK:SPACING: spaces preferred around that '&' (ctx:VxV) #211: FILE: drivers/net/bnx2x/ecore_fw_defs.h:23: + (IRO[158].base + (((pfId)>>1) * IRO[158].m1) + (((pfId)&1) * \ ^ CHECK:CAMELCASE: Avoid CamelCase: #215: FILE: drivers/net/bnx2x/ecore_fw_defs.h:26: + (IRO[163].base + ((funcId) * IRO[163].m1)) CHECK:CAMELCASE: Avoid CamelCase: #221: FILE: drivers/net/bnx2x/ecore_fw_defs.h:30: + (IRO[143].base + ((hcIndex) * IRO[143].m1) + ((sbId) * IRO[143].m2)) CHECK:CAMELCASE: Avoid CamelCase: #221: FILE: drivers/net/bnx2x/ecore_fw_defs.h:30: + (IRO[143].base + ((hcIndex) * IRO[143].m1) + ((sbId) * IRO[143].m2)) CHECK:SPACING: spaces preferred around that '>>' (ctx:VxV) #226: FILE: drivers/net/bnx2x/ecore_fw_defs.h:32: + (IRO[142].base + (((hcIndex)>>2) * IRO[142].m1) + (((hcIndex)&3) \ ^ CHECK:SPACING: spaces preferred around that '&' (ctx:VxV) #226: FILE: drivers/net/bnx2x/ecore_fw_defs.h:32: + (IRO[142].base + (((hcIndex)>>2) * IRO[142].m1) + (((hcIndex)&3) \ ^ CHECK:CAMELCASE: Avoid CamelCase: #237: FILE: drivers/net/bnx2x/ecore_fw_defs.h:40: + (IRO[316].base + ((pfId) * IRO[316].m1) + ((iscsiEqId) * IRO[316].m2)) CHECK:CAMELCASE: Avoid CamelCase: #309: FILE: drivers/net/bnx2x/ecore_fw_defs.h:87: +#define CSTORM_VF_PF_CHANNEL_STATE_OFFSET(vfId) \ CHECK:CAMELCASE: Avoid CamelCase: #390: FILE: drivers/net/bnx2x/ecore_fw_defs.h:142: + (IRO[187].base + ((portId) * IRO[187].m1)) CHECK:CAMELCASE: Avoid CamelCase: #436: FILE: drivers/net/bnx2x/ecore_fw_defs.h:172: + (IRO[215].base + ((portId) * IRO[215].m1) + ((clientId) * \ CHECK:CAMELCASE: Avoid CamelCase: #442: FILE: drivers/net/bnx2x/ecore_fw_defs.h:175: + (IRO[216].base + ((qzoneId) * IRO[216].m1)) CHECK:SPACING: spaces preferred around that '>>' (ctx:VxV) #520: FILE: drivers/net/bnx2x/ecore_fw_defs.h:241: + (IRO[220].base + (((pfId)>>1) * IRO[220].m1) + (((pfId)&1) * \ ^ CHECK:SPACING: spaces preferred around that '&' (ctx:VxV) #520: FILE: drivers/net/bnx2x/ecore_fw_defs.h:241: + (IRO[220].base + (((pfId)>>1) * IRO[220].m1) + (((pfId)&1) * \ ^ CHECK:SPACING: spaces preferred around that '/' (ctx:VxV) #548: FILE: drivers/net/bnx2x/ecore_fw_defs.h:268: + (0xFFFF - ((PAGE_SIZE/((STRUCT_SIZE(eth_rx_sge))/8))-1)) ^ CHECK:SPACING: spaces preferred around that '/' (ctx:VxV) #548: FILE: drivers/net/bnx2x/ecore_fw_defs.h:268: + (0xFFFF - ((PAGE_SIZE/((STRUCT_SIZE(eth_rx_sge))/8))-1)) ^ CHECK:SPACING: spaces preferred around that '-' (ctx:VxV) #548: FILE: drivers/net/bnx2x/ecore_fw_defs.h:268: + (0xFFFF - ((PAGE_SIZE/((STRUCT_SIZE(eth_rx_sge))/8))-1)) ^ CHECK:SPACING: spaces preferred around that '/' (ctx:VxV) #552: FILE: drivers/net/bnx2x/ecore_fw_defs.h:272: +#define U_ETH_SGES_PER_PAGE (PAGE_SIZE/(STRUCT_SIZE(eth_rx_sge)/8)) ^ CHECK:SPACING: spaces preferred around that '/' (ctx:VxV) #552: FILE: drivers/net/bnx2x/ecore_fw_defs.h:272: +#define U_ETH_SGES_PER_PAGE (PAGE_SIZE/(STRUCT_SIZE(eth_rx_sge)/8)) ^ CHECK:SPACING: spaces preferred around that '-' (ctx:VxV) #556: FILE: drivers/net/bnx2x/ecore_fw_defs.h:276: +#define U_ETH_SGES_PER_PAGE_MASK (U_ETH_SGES_PER_PAGE-1) ^ CHECK:SPACING: spaces preferred around that '-' (ctx:VxV) #599: FILE: drivers/net/bnx2x/ecore_fw_defs.h:378: +#define TSDM_TIMER_TICK_RESUL_CHIP (1 * (1e-6)) ^ CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'r_order == MAX_RD_ORD' #1141: FILE: drivers/net/bnx2x/ecore_init_ops.h:499: + if ((CHIP_IS_E1(sc) || CHIP_IS_E1H(sc)) && (r_order == MAX_RD_ORD)) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'x' - possible side-effects? #1559: FILE: drivers/net/bnx2x/ecore_sp.h:138: +#define ECORE_ILT_ZALLOC(x, y, size) \ do { \ x = rte_malloc("", sizeof(struct bnx2x_dma), RTE_CACHE_LINE_SIZE); \ if (x) { \ if (bnx2x_dma_alloc((struct bnx2x_softc *)sc, \ size, (struct bnx2x_dma *)x, \ + "ILT", RTE_CACHE_LINE_SIZE) != 0) { \ rte_free(x); \ x = NULL; \ + *(y) = 0; \ } else { \ *y = ((struct bnx2x_dma *)x)->paddr; \ } \ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'y' - possible side-effects? #1559: FILE: drivers/net/bnx2x/ecore_sp.h:138: +#define ECORE_ILT_ZALLOC(x, y, size) \ do { \ x = rte_malloc("", sizeof(struct bnx2x_dma), RTE_CACHE_LINE_SIZE); \ if (x) { \ if (bnx2x_dma_alloc((struct bnx2x_softc *)sc, \ size, (struct bnx2x_dma *)x, \ + "ILT", RTE_CACHE_LINE_SIZE) != 0) { \ rte_free(x); \ x = NULL; \ + *(y) = 0; \ } else { \ *y = ((struct bnx2x_dma *)x)->paddr; \ } \ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'sc' - possible side-effects? #2213: FILE: drivers/net/bnx2x/ecore_sp.h:1967: +#define PF_MAC_CREDIT_E2(sc, func_num) \ + ((MAX_MAC_CREDIT_E2 - GET_NUM_VFS_PER_PATH(sc) * VF_MAC_CREDIT_CNT) / \ + (func_num) + GET_NUM_VFS_PER_PF(sc) * VF_MAC_CREDIT_CNT) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'sc' - possible side-effects? #2217: FILE: drivers/net/bnx2x/ecore_sp.h:1971: +#define PF_VLAN_CREDIT_E2(sc, func_num) \ + ((MAX_MAC_CREDIT_E2 - GET_NUM_VFS_PER_PATH(sc) * VF_VLAN_CREDIT_CNT) / \ + (func_num) + GET_NUM_VFS_PER_PF(sc) * VF_VLAN_CREDIT_CNT) total: 0 errors, 0 warnings, 30 checks, 2020 lines checked