ixgbe: remove unused function causing error with clang
authorKeith Wiles <keith.wiles@intel.com>
Mon, 23 Feb 2015 18:24:43 +0000 (12:24 -0600)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 02:18:55 +0000 (03:18 +0100)
Signed-off-by: Keith Wiles <keith.wiles@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_ixgbe/ixgbe_ethdev.c

index 6e7a1ab..9bdc046 100644 (file)
@@ -3810,19 +3810,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
  *