From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rcdn-iport-8.cisco.com (rcdn-iport-8.cisco.com [173.37.86.79]) by dpdk.org (Postfix) with ESMTP id 2E6A72BE3 for ; Fri, 4 Mar 2016 09:06:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2217; q=dns/txt; s=iport; t=1457078801; x=1458288401; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=fqwQ9OJr07gKwr2oKMUbhl7V5otD8BfWJCtsQgWdMAI=; b=Xre0gqzJzrNvZd5mOrKl6iPijPT+uk01De5q39D1pompuWPie3mrK9MQ GoDPlZD1mjlhBJbR4lJeNX3+Q5GYIuYyzsA154vq4AfC6wOdZJ+bYEW1F 9aUTpNvb+r4t60Q89xnqjoM4eofgfyL6N2K0dYi+qYmRR3BFPwV3zSzH9 8=; X-IronPort-AV: E=Sophos;i="5.22,535,1449532800"; d="scan'208";a="77592011" Received: from rcdn-core-2.cisco.com ([173.37.93.153]) by rcdn-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Mar 2016 08:06:40 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by rcdn-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id u2486d3K014198; Fri, 4 Mar 2016 08:06:40 GMT Received: by cisco.com (Postfix, from userid 392789) id E2DEE3FAAD95; Fri, 4 Mar 2016 00:06:39 -0800 (PST) From: John Daley To: dev@dpdk.org Date: Fri, 4 Mar 2016 00:06:23 -0800 Message-Id: <1457078783-2508-2-git-send-email-johndale@cisco.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1457078783-2508-1-git-send-email-johndale@cisco.com> References: <1456106650-26727-1-git-send-email-johndale@cisco.com> <1457078783-2508-1-git-send-email-johndale@cisco.com> Cc: John Daley , richardson@intel.com Subject: [dpdk-dev] [PATCH v5 2/2] enic: remove unused functions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2016 08:06:41 -0000 The clang compiler warned about a half dozen static inline functions which were not used. Remove them. Signed-off-by: John Daley --- 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