Lines Matching full:decoded
51 struct ice_rx_ptype_decoded decoded = ice_decode_rx_desc_ptype(ptype); in ice_ptype_to_htype() local
53 if (!decoded.known) in ice_ptype_to_htype()
55 if (decoded.payload_layer == ICE_RX_PTYPE_PAYLOAD_LAYER_PAY4) in ice_ptype_to_htype()
57 if (decoded.payload_layer == ICE_RX_PTYPE_PAYLOAD_LAYER_PAY3) in ice_ptype_to_htype()
59 if (decoded.outer_ip == ICE_RX_PTYPE_OUTER_L2) in ice_ptype_to_htype()
95 * @ptype: the packet type decoded by hardware
103 struct ice_rx_ptype_decoded decoded; in ice_rx_csum() local
110 decoded = ice_decode_rx_desc_ptype(ptype); in ice_rx_csum()
120 /* check if HW has decoded the packet and checksum */ in ice_rx_csum()
124 if (!(decoded.known && decoded.outer_ip)) in ice_rx_csum()
127 ipv4 = (decoded.outer_ip == ICE_RX_PTYPE_OUTER_IP) && in ice_rx_csum()
128 (decoded.outer_ip_ver == ICE_RX_PTYPE_OUTER_IPV4); in ice_rx_csum()
129 ipv6 = (decoded.outer_ip == ICE_RX_PTYPE_OUTER_IP) && in ice_rx_csum()
130 (decoded.outer_ip_ver == ICE_RX_PTYPE_OUTER_IPV6); in ice_rx_csum()
154 if (decoded.tunnel_type >= ICE_RX_PTYPE_TUNNEL_IP_GRENAT) in ice_rx_csum()
158 switch (decoded.inner_prot) { in ice_rx_csum()
178 * @ptype: the packet type decoded by hardware