/* Even though the input is given in big-endian, the FDIRPORT registers expect the ports to be programmed in little-endian. Hence the need to swap endianness when retrieving the data. This can be confusing since the internal hash engine expects it to be big-endian.  */
static s32 ixgbe_atr_get_src_port_82599(struct ixgbe_atr_input *input, u16 *src_port)
/* Even though the input is given in big-endian, the FDIRPORT registers expect the ports to be programmed in little-endian. Hence the need to swap endianness when retrieving the data. This can be confusing since the internal hash engine expects it to be big-endian.  */
static s32 ixgbe_atr_get_src_port_82599(struct ixgbe_atr_input *input, u16 *src_port)
{
	*src_port = input->byte_stream[IXGBE_ATR_SRC_PORT_OFFSET] << 8;
	*src_port |= input->byte_stream[IXGBE_ATR_SRC_PORT_OFFSET + 1];
	return 0;
}