From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 1017) id 3A7274C95; Wed, 22 Aug 2018 09:39:03 +0200 (CEST) In-Reply-To: <1534923617-55302-1-git-send-email-yogev@cgstowernetworks.com> References: <1534923617-55302-1-git-send-email-yogev@cgstowernetworks.com> To: test-report@dpdk.org Cc: yogev ch Message-Id: <20180822073903.3A7274C95@dpdk.org> Date: Wed, 22 Aug 2018 09:39:03 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw43799 vmxnet3: stats_reset implementation 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: , X-List-Received-Date: Wed, 22 Aug 2018 07:39:03 -0000 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/43799 _coding style issues_ CHECK:CAMELCASE: Avoid CamelCase: #64: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:904: + struct UPT1_TxStats *res) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'f' - possible side-effects? #68: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:908: +#define VMXNET3_REDUCE_SNAPSHOT_TX_STAT(h, i, f, r) \ + ((r)->f -= (h)->snapshot_tx_stats[(i)].f) CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'f' may be better as '(f)' to avoid precedence issues #68: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:908: +#define VMXNET3_REDUCE_SNAPSHOT_TX_STAT(h, i, f, r) \ + ((r)->f -= (h)->snapshot_tx_stats[(i)].f) CHECK:CAMELCASE: Avoid CamelCase: #71: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:911: + VMXNET3_REDUCE_SNAPSHOT_TX_STAT(hw, q, ucastPktsTxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #72: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:912: + VMXNET3_REDUCE_SNAPSHOT_TX_STAT(hw, q, mcastPktsTxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #73: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:913: + VMXNET3_REDUCE_SNAPSHOT_TX_STAT(hw, q, bcastPktsTxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #74: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:914: + VMXNET3_REDUCE_SNAPSHOT_TX_STAT(hw, q, ucastBytesTxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #75: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:915: + VMXNET3_REDUCE_SNAPSHOT_TX_STAT(hw, q, mcastBytesTxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #76: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:916: + VMXNET3_REDUCE_SNAPSHOT_TX_STAT(hw, q, bcastBytesTxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #77: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:917: + VMXNET3_REDUCE_SNAPSHOT_TX_STAT(hw, q, pktsTxError, res); CHECK:CAMELCASE: Avoid CamelCase: #78: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:918: + VMXNET3_REDUCE_SNAPSHOT_TX_STAT(hw, q, pktsTxDiscard, res); CHECK:CAMELCASE: Avoid CamelCase: #85: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:925: + struct UPT1_RxStats *res) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'f' - possible side-effects? #89: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:929: +#define VMXNET3_REDUCE_SNAPSHOT_RX_STAT(h, i, f, r) \ + ((r)->f -= (h)->snapshot_rx_stats[(i)].f) CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'f' may be better as '(f)' to avoid precedence issues #89: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:929: +#define VMXNET3_REDUCE_SNAPSHOT_RX_STAT(h, i, f, r) \ + ((r)->f -= (h)->snapshot_rx_stats[(i)].f) CHECK:CAMELCASE: Avoid CamelCase: #92: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:932: + VMXNET3_REDUCE_SNAPSHOT_RX_STAT(hw, q, ucastPktsRxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #93: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:933: + VMXNET3_REDUCE_SNAPSHOT_RX_STAT(hw, q, mcastPktsRxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #94: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:934: + VMXNET3_REDUCE_SNAPSHOT_RX_STAT(hw, q, bcastPktsRxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #95: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:935: + VMXNET3_REDUCE_SNAPSHOT_RX_STAT(hw, q, ucastBytesRxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #96: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:936: + VMXNET3_REDUCE_SNAPSHOT_RX_STAT(hw, q, mcastBytesRxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #97: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:937: + VMXNET3_REDUCE_SNAPSHOT_RX_STAT(hw, q, bcastBytesRxOK, res); CHECK:CAMELCASE: Avoid CamelCase: #98: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:938: + VMXNET3_REDUCE_SNAPSHOT_RX_STAT(hw, q, pktsRxError, res); CHECK:CAMELCASE: Avoid CamelCase: #99: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:939: + VMXNET3_REDUCE_SNAPSHOT_RX_STAT(hw, q, pktsRxOutOfBuf, res); CHECK:CAMELCASE: Avoid CamelCase: #110: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:1056: + vmxnet3_tx_stats_get(hw, i, &txStats); CHECK:CAMELCASE: Avoid CamelCase: #119: FILE: drivers/net/vmxnet3/vmxnet3_ethdev.c:1073: + vmxnet3_rx_stats_get(hw, i, &rxStats); total: 0 errors, 0 warnings, 24 checks, 129 lines checked