Skip to contentSkip to conversation

Remove unused static function revert_protocol_type() causing error with clang

PATCH Applied Keith Wiles 2 participants 2 messages Feb 23, 2015 – Feb 24, 2015 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unused static function revert_protocol_type() causing error with clang

---
 lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 13 -------------
 1 file changed, 13 deletions(-)
lib/librte_pmd_ixgbe/ixgbe_ethdev.c +0 -13
index ad903d4..ea6f13d 100644
@@ -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
  *
Signature · 1 line
2.3.0

A message that is not in the archive (sent off-list or not yet received): 1424715883-46989-1-git-send-email-keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org