From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Wiles Subject: [PATCH] Remove unused static function revert_protocol_type() causing error with clang Date: Mon, 23 Feb 2015 12:24:43 -0600 Message-ID: <1424715883-46989-1-git-send-email-keith.wiles@intel.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Signed-off-by: Keith Wiles --- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c index ad903d4..ea6f13d 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c +++ b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c @@ -3809,19 +3809,6 @@ convert_protocol_type(uint8_t protocol_value) return IXGBE_FILTER_PROTOCOL_NONE; } -static inline uint8_t -revert_protocol_type(enum ixgbe_5tuple_protocol protocol) -{ - if (protocol == IXGBE_FILTER_PROTOCOL_TCP) - return IPPROTO_TCP; - else if (protocol == IXGBE_FILTER_PROTOCOL_UDP) - return IPPROTO_UDP; - else if (protocol == IXGBE_FILTER_PROTOCOL_SCTP) - return IPPROTO_SCTP; - else - return 0; -} - /* * add a 5tuple filter * -- 2.3.0