[dpdk-test-report] |WARNING| pw52703 [PATCH v4 05/13] net/enetc: add basic statistics

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Apr 12 14:29:50 CEST 2019


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/52703

_coding style issues_


ERROR:DOS_LINE_ENDINGS: DOS line endings
#36: FILE: doc/guides/nics/enetc.rst:49:
+- Basic stats^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#48: FILE: doc/guides/nics/features/enetc.ini:9:
+Basic stats          = Y^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#62: FILE: drivers/net/enetc/base/enetc_hw.h:119:
+/* Config register to reset counters*/^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#63: FILE: drivers/net/enetc/base/enetc_hw.h:120:
+#define ENETC_PM0_STAT_CONFIG^I^I0x080E0^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#64: FILE: drivers/net/enetc/base/enetc_hw.h:121:
+/* Receive frames counter without error */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#65: FILE: drivers/net/enetc/base/enetc_hw.h:122:
+#define ENETC_PM0_RFRM^I^I^I0x08120^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#66: FILE: drivers/net/enetc/base/enetc_hw.h:123:
+/* Receive packets counter, good + bad */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#67: FILE: drivers/net/enetc/base/enetc_hw.h:124:
+#define ENETC_PM0_RPKT^I^I^I0x08160^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#68: FILE: drivers/net/enetc/base/enetc_hw.h:125:
+/* Received octets, good + bad */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#69: FILE: drivers/net/enetc/base/enetc_hw.h:126:
+#define ENETC_PM0_REOCT^I^I^I0x08120^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#70: FILE: drivers/net/enetc/base/enetc_hw.h:127:
+/* Transmit octets, good + bad */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#71: FILE: drivers/net/enetc/base/enetc_hw.h:128:
+#define ENETC_PM0_TEOCT^I^I^I0x08200^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#72: FILE: drivers/net/enetc/base/enetc_hw.h:129:
+/* Transmit frames counter without error */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#73: FILE: drivers/net/enetc/base/enetc_hw.h:130:
+#define ENETC_PM0_TFRM^I^I^I0x08220^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#74: FILE: drivers/net/enetc/base/enetc_hw.h:131:
+/* Transmit packets counter, good + bad */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#75: FILE: drivers/net/enetc/base/enetc_hw.h:132:
+#define ENETC_PM0_TPKT^I^I^I0x08260^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#76: FILE: drivers/net/enetc/base/enetc_hw.h:133:
+/* Dropped not Truncated packets counter */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#77: FILE: drivers/net/enetc/base/enetc_hw.h:134:
+#define ENETC_PM0_RDRNTP^I^I0x081C8^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#78: FILE: drivers/net/enetc/base/enetc_hw.h:135:
+/* Dropped + trucated packets counter */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#79: FILE: drivers/net/enetc/base/enetc_hw.h:136:
+#define ENETC_PM0_RDRP^I^I^I0x08158^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#80: FILE: drivers/net/enetc/base/enetc_hw.h:137:
+/* Receive packets error counter */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#81: FILE: drivers/net/enetc/base/enetc_hw.h:138:
+#define ENETC_PM0_RERR^I^I^I0x08138^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#82: FILE: drivers/net/enetc/base/enetc_hw.h:139:
+/* Transmit packets error counter */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#83: FILE: drivers/net/enetc/base/enetc_hw.h:140:
+#define ENETC_PM0_TERR^I^I^I0x08238^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#84: FILE: drivers/net/enetc/base/enetc_hw.h:141:
+^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#85: FILE: drivers/net/enetc/base/enetc_hw.h:142:
+/* Stats Reset Bit*/^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#86: FILE: drivers/net/enetc/base/enetc_hw.h:143:
+#define ENETC_CLEAR_STATS^I^IBIT(2)^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#87: FILE: drivers/net/enetc/base/enetc_hw.h:144:
+^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#99: FILE: drivers/net/enetc/enetc_ethdev.c:32:
+static int enetc_stats_get(struct rte_eth_dev *dev,^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#100: FILE: drivers/net/enetc/enetc_ethdev.c:33:
+^I^Istruct rte_eth_stats *stats);^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#101: FILE: drivers/net/enetc/enetc_ethdev.c:34:
+static void enetc_stats_reset(struct rte_eth_dev *dev);^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#109: FILE: drivers/net/enetc/enetc_ethdev.c:52:
+^I.stats_get            = enetc_stats_get,^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#110: FILE: drivers/net/enetc/enetc_ethdev.c:53:
+^I.stats_reset          = enetc_stats_reset,^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#118: FILE: drivers/net/enetc/enetc_ethdev.c:616:
+static^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#119: FILE: drivers/net/enetc/enetc_ethdev.c:617:
+int enetc_stats_get(struct rte_eth_dev *dev,^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#120: FILE: drivers/net/enetc/enetc_ethdev.c:618:
+^I^I    struct rte_eth_stats *stats)^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#121: FILE: drivers/net/enetc/enetc_ethdev.c:619:
+{^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#122: FILE: drivers/net/enetc/enetc_ethdev.c:620:
+^Istruct enetc_eth_hw *hw =^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#123: FILE: drivers/net/enetc/enetc_ethdev.c:621:
+^I^IENETC_DEV_PRIVATE_TO_HW(dev->data->dev_private);^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#124: FILE: drivers/net/enetc/enetc_ethdev.c:622:
+^Istruct enetc_hw *enetc_hw = &hw->hw;^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#125: FILE: drivers/net/enetc/enetc_ethdev.c:623:
+^M$

ERROR:TRAILING_WHITESPACE: trailing whitespace
#126: FILE: drivers/net/enetc/enetc_ethdev.c:624:
+^I/* Total received packets, bad + good, if we want to get counters of^M$

ERROR:TRAILING_WHITESPACE: trailing whitespace
#127: FILE: drivers/net/enetc/enetc_ethdev.c:625:
+^I * only good received packets then use ENETC_PM0_RFRM,^M$

ERROR:TRAILING_WHITESPACE: trailing whitespace
#128: FILE: drivers/net/enetc/enetc_ethdev.c:626:
+^I * ENETC_PM0_TFRM registers.^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#129: FILE: drivers/net/enetc/enetc_ethdev.c:627:
+^I */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#130: FILE: drivers/net/enetc/enetc_ethdev.c:628:
+^Istats->ipackets = enetc_port_rd(enetc_hw, ENETC_PM0_RPKT);^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#131: FILE: drivers/net/enetc/enetc_ethdev.c:629:
+^Istats->opackets = enetc_port_rd(enetc_hw, ENETC_PM0_TPKT);^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#132: FILE: drivers/net/enetc/enetc_ethdev.c:630:
+^Istats->ibytes =  enetc_port_rd(enetc_hw, ENETC_PM0_REOCT);^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#133: FILE: drivers/net/enetc/enetc_ethdev.c:631:
+^Istats->obytes = enetc_port_rd(enetc_hw, ENETC_PM0_TEOCT);^M$

ERROR:TRAILING_WHITESPACE: trailing whitespace
#134: FILE: drivers/net/enetc/enetc_ethdev.c:632:
+^I/* Dropped + Truncated packets, use ENETC_PM0_RDRNTP for without^M$

ERROR:TRAILING_WHITESPACE: trailing whitespace
#135: FILE: drivers/net/enetc/enetc_ethdev.c:633:
+^I * truncated packets^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#136: FILE: drivers/net/enetc/enetc_ethdev.c:634:
+^I */^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#137: FILE: drivers/net/enetc/enetc_ethdev.c:635:
+^Istats->imissed = enetc_port_rd(enetc_hw, ENETC_PM0_RDRP);^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#138: FILE: drivers/net/enetc/enetc_ethdev.c:636:
+^Istats->ierrors = enetc_port_rd(enetc_hw, ENETC_PM0_RERR);^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#139: FILE: drivers/net/enetc/enetc_ethdev.c:637:
+^Istats->oerrors = enetc_port_rd(enetc_hw, ENETC_PM0_TERR);^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#140: FILE: drivers/net/enetc/enetc_ethdev.c:638:
+^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#141: FILE: drivers/net/enetc/enetc_ethdev.c:639:
+^Ireturn 0;^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#142: FILE: drivers/net/enetc/enetc_ethdev.c:640:
+}^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#143: FILE: drivers/net/enetc/enetc_ethdev.c:641:
+^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#144: FILE: drivers/net/enetc/enetc_ethdev.c:642:
+static void^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#145: FILE: drivers/net/enetc/enetc_ethdev.c:643:
+enetc_stats_reset(struct rte_eth_dev *dev)^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#146: FILE: drivers/net/enetc/enetc_ethdev.c:644:
+{^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#147: FILE: drivers/net/enetc/enetc_ethdev.c:645:
+^Istruct enetc_eth_hw *hw =^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#148: FILE: drivers/net/enetc/enetc_ethdev.c:646:
+^I^IENETC_DEV_PRIVATE_TO_HW(dev->data->dev_private);^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#149: FILE: drivers/net/enetc/enetc_ethdev.c:647:
+^Istruct enetc_hw *enetc_hw = &hw->hw;^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#150: FILE: drivers/net/enetc/enetc_ethdev.c:648:
+^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#151: FILE: drivers/net/enetc/enetc_ethdev.c:649:
+^Ienetc_port_wr(enetc_hw, ENETC_PM0_STAT_CONFIG, ENETC_CLEAR_STATS);^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#152: FILE: drivers/net/enetc/enetc_ethdev.c:650:
+}^M$

ERROR:DOS_LINE_ENDINGS: DOS line endings
#153: FILE: drivers/net/enetc/enetc_ethdev.c:651:
+^M$

total: 69 errors, 0 warnings, 0 checks, 107 lines checked


More information about the test-report mailing list