DPDK patches and discussions
 help / color / mirror / Atom feed
From: John Daley <johndale@cisco.com>
To: dev@dpdk.org
Cc: John Daley <johndale@cisco.com>, richardson@intel.com
Subject: [dpdk-dev] [PATCH v5 2/2] enic: remove unused functions
Date: Fri,  4 Mar 2016 00:06:23 -0800	[thread overview]
Message-ID: <1457078783-2508-2-git-send-email-johndale@cisco.com> (raw)
In-Reply-To: <1457078783-2508-1-git-send-email-johndale@cisco.com>

The clang compiler warned about a half dozen static inline functions
which were not used. Remove them.

Signed-off-by: John Daley <johndale@cisco.com>
---
 drivers/net/enic/enic_main.c | 10 ----------
 drivers/net/enic/enic_rx.c   | 35 -----------------------------------
 2 files changed, 45 deletions(-)

diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index d897fcf..d0c9bff 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -91,16 +91,6 @@ static int is_eth_addr_valid(uint8_t *addr)
 	return !is_mcast_addr(addr) && !is_zero_addr(addr);
 }
 
-static inline struct rte_mbuf *
-enic_rxmbuf_alloc(struct rte_mempool *mp)
-{
-	struct rte_mbuf *m;
-
-	m = __rte_mbuf_raw_alloc(mp);
-	__rte_mbuf_sanity_check_raw(m, 0);
-	return m;
-}
-
 static void
 enic_rxmbuf_queue_release(struct enic *enic, struct vnic_rq *rq)
 {
diff --git a/drivers/net/enic/enic_rx.c b/drivers/net/enic/enic_rx.c
index 524bcb0..12b1f62 100644
--- a/drivers/net/enic/enic_rx.c
+++ b/drivers/net/enic/enic_rx.c
@@ -130,41 +130,6 @@ enic_cq_rx_desc_rss_hash(struct cq_enet_rq_desc *cqrd)
 }
 
 static inline uint8_t
-enic_cq_rx_desc_ipv4(struct cq_enet_rq_desc *cqrd)
-{
-	return ((cqrd->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4) ==
-		CQ_ENET_RQ_DESC_FLAGS_IPV4);
-}
-
-static inline uint8_t
-enic_cq_rx_desc_ipv6(struct cq_enet_rq_desc *cqrd)
-{
-	return ((cqrd->flags & CQ_ENET_RQ_DESC_FLAGS_IPV6) ==
-		CQ_ENET_RQ_DESC_FLAGS_IPV6);
-}
-
-static inline uint8_t
-enic_cq_rx_desc_udp(struct cq_enet_rq_desc *cqrd)
-{
-	return ((cqrd->flags & CQ_ENET_RQ_DESC_FLAGS_UDP)
-		== CQ_ENET_RQ_DESC_FLAGS_UDP);
-}
-
-static inline uint8_t
-enic_cq_rx_desc_tcp(struct cq_enet_rq_desc *cqrd)
-{
-	return ((cqrd->flags & CQ_ENET_RQ_DESC_FLAGS_TCP)
-		== CQ_ENET_RQ_DESC_FLAGS_TCP);
-}
-
-static inline uint8_t
-enic_cq_rx_desc_ipv4_frag(struct cq_enet_rq_desc *cqrd)
-{
-	return ((cqrd->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4_FRAGMENT)
-		== CQ_ENET_RQ_DESC_FLAGS_IPV4_FRAGMENT);
-}
-
-static inline uint8_t
 enic_cq_rx_desc_fcs_ok(struct cq_enet_rq_desc *cqrd)
 {
 	return ((cqrd->flags & CQ_ENET_RQ_DESC_FLAGS_FCS_OK) ==
-- 
2.7.0

  reply	other threads:[~2016-03-04  8:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-22  1:17 [dpdk-dev] [PATCH v2] enic: receive path performance improvements johndale
2016-02-22  2:04 ` [dpdk-dev] [PATCH v3] " johndale
2016-03-03  1:44   ` [dpdk-dev] [PATCH v4] " John Daley
2016-03-04  8:06   ` [dpdk-dev] [PATCH v5 1/2] " John Daley
2016-03-04  8:06     ` John Daley [this message]
2016-03-04 21:09   ` [dpdk-dev] [PATCH v6] " John Daley
2016-03-08 14:43     ` Bruce Richardson
2016-03-15 20:42     ` 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=1457078783-2508-2-git-send-email-johndale@cisco.com \
    --to=johndale@cisco.com \
    --cc=dev@dpdk.org \
    --cc=richardson@intel.com \
    /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).