From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: stephen@networkplumber.org
Cc: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] sched: remove unused debug functions
Date: Wed, 25 Nov 2015 01:52:31 +0100 [thread overview]
Message-ID: <1448412751-24843-1-git-send-email-thomas.monjalon@6wind.com> (raw)
clang warns about unused functions when debug is enabled.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
lib/librte_sched/rte_sched.c | 31 -------------------------------
1 file changed, 31 deletions(-)
diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c
index 9f0b458..d47cfc2 100644
--- a/lib/librte_sched/rte_sched.c
+++ b/lib/librte_sched/rte_sched.c
@@ -1055,16 +1055,6 @@ rte_sched_port_queue_is_empty(struct rte_sched_port *port, uint32_t qindex)
return (queue->qr == queue->qw);
}
-static inline int
-rte_sched_port_queue_is_full(struct rte_sched_port *port, uint32_t qindex)
-{
- struct rte_sched_queue *queue = port->queue + qindex;
- uint16_t qsize = rte_sched_port_qsize(port, qindex);
- uint16_t qlen = queue->qw - queue->qr;
-
- return (qlen >= qsize);
-}
-
#endif /* RTE_SCHED_DEBUG */
#ifdef RTE_SCHED_COLLECT_STATS
@@ -1156,27 +1146,6 @@ rte_sched_port_set_queue_empty_timestamp(struct rte_sched_port *port, uint32_t q
#ifdef RTE_SCHED_DEBUG
-static inline int
-debug_pipe_is_empty(struct rte_sched_port *port, uint32_t pindex)
-{
- uint32_t qindex, i;
-
- qindex = pindex << 4;
-
- for (i = 0; i < 16; i++) {
- uint32_t queue_empty = rte_sched_port_queue_is_empty(port, qindex + i);
- uint32_t bmp_bit_clear = (rte_bitmap_get(port->bmp, qindex + i) == 0);
-
- if (queue_empty != bmp_bit_clear)
- rte_panic("Queue status mismatch for queue %u of pipe %u\n", i, pindex);
-
- if (!queue_empty)
- return 0;
- }
-
- return 1;
-}
-
static inline void
debug_check_queue_slab(struct rte_sched_port *port, uint32_t bmp_pos,
uint64_t bmp_slab)
--
2.5.2
next reply other threads:[~2015-11-25 0:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 0:52 Thomas Monjalon [this message]
2015-11-25 13:39 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1448412751-24843-1-git-send-email-thomas.monjalon@6wind.com \
--to=thomas.monjalon@6wind.com \
--cc=dev@dpdk.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).