automatic DPDK test reports
 help / color / mirror / Atom feed
* |WARNING| pw114948 [RFC 2/2] vhost: add egress API for port mirroring datapath
       [not found] <20220814124920.14338-3-cheng1.jiang@intel.com>
@ 2022-08-14 13:20 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2022-08-14 13:20 UTC (permalink / raw)
  To: test-report; +Cc: Cheng Jiang

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

_coding style issues_


ERROR:INITIALISED_STATIC: do not initialise statics to 0
#318: FILE: lib/vhost/virtio_net.c:4018:
+	static uint64_t total = 0;

WARNING:LONG_LINE: line length of 144 exceeds 100 columns
#360: FILE: lib/vhost/virtio_net.c:4060:
+			if ((((uintptr_t)rte_pktmbuf_iova_offset(cur, mbuf_offset) & 0xFFF) ^ ((uint64_t)mirror_hpa & 0xFFF)) != 0 && flag == 0)

ERROR:OPEN_BRACE: that open brace { should be on the previous line
#360: FILE: lib/vhost/virtio_net.c:4060:
+			if ((((uintptr_t)rte_pktmbuf_iova_offset(cur, mbuf_offset) & 0xFFF) ^ ((uint64_t)mirror_hpa & 0xFFF)) != 0 && flag == 0)
+			{

WARNING:LONG_LINE: line length of 173 exceeds 100 columns
#363: FILE: lib/vhost/virtio_net.c:4063:
+				VHOST_LOG_DATA(ERR, "%lu.........mbuf=%p mirror_hpa=%p.
", total, (void *)(uintptr_t)rte_pktmbuf_iova_offset(cur, mbuf_offset), mirror_hpa);

WARNING:LONG_LINE: line length of 101 exceeds 100 columns
#621: FILE: lib/vhost/virtio_net.c:4321:
+		ret = vq->async_ops.transfer_data(dev->vid, queue_id, tdes, 0, nr_async_burst, true);

WARNING:IF_0: Consider removing the code enclosed by this #if 0 and its #endif
#807: FILE: lib/vhost/virtio_net.c:4507:
+#if 0

total: 2 errors, 4 warnings, 764 lines checked
Warning in lib/vhost/virtio_net.c:
Using %l format, prefer %PRI*64 if type is [u]int64_t

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-14 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20220814124920.14338-3-cheng1.jiang@intel.com>
2022-08-14 13:20 ` |WARNING| pw114948 [RFC 2/2] vhost: add egress API for port mirroring datapath checkpatch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).