From: Wenjun Wu Date: Tue, 3 Aug 2021 07:23:54 +0000 (+0800) Subject: net/ice/base: support flow director for IPv6 fragments X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e4d745abaffb92bf2aaf4befda4a2c5a68ab90a9;p=dpdk.git net/ice/base: support flow director for IPv6 fragments Add L2 and L3 FDIR field support for IPv6 fragment packets. Signed-off-by: Wenjun Wu Acked-by: Qi Zhang --- diff --git a/drivers/net/ice/base/ice_fdir.c b/drivers/net/ice/base/ice_fdir.c index d50f54a979..ae76361102 100644 --- a/drivers/net/ice/base/ice_fdir.c +++ b/drivers/net/ice/base/ice_fdir.c @@ -4085,6 +4085,13 @@ ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input, ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac); break; case ICE_FLTR_PTYPE_FRAG_IPV6: + ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET, + input->ip.v6.src_ip); + ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET, + input->ip.v6.dst_ip); + ice_pkt_insert_u8_tc(loc, ICE_IPV6_TC_OFFSET, input->ip.v6.tc); + ice_pkt_insert_u8(loc, ICE_IPV6_HLIM_OFFSET, input->ip.v6.hlim); + ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac); ice_pkt_insert_u32(loc, ICE_IPV6_ID_OFFSET, input->ip.v6.packet_id); break;