[dpdk-dev] [PATCH v5 2/2] enic: remove unused functions

John Daley johndale at cisco.com
Fri Mar 4 09:06:23 CET 2016


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

Signed-off-by: John Daley <johndale at 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



More information about the dev mailing list