[dpdk-dev] Remove unused static function revert_protocol_type() causing error with clang
Commit Message
Signed-off-by: Keith Wiles <keith.wiles@intel.com>
---
lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 13 -------------
1 file changed, 13 deletions(-)
Comments
2015-02-23 12:24, Keith Wiles:
> Signed-off-by: Keith Wiles <keith.wiles@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Applied, thanks
@@ -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
*