avf dpdk: fix incorrect handling of IPv6 src address in flow
[vpp.git] / src / plugins / avf / avf_fdir_lib.c
index cf774a7..5293787 100644 (file)
@@ -257,9 +257,9 @@ avf_fdir_rcfg_set_field (struct avf_fdir_conf *rcfg, int layer,
            {
              rcfg->input_set |= AVF_INSET_IPV6_DST;
              VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT (hdr, IPV6, DST);
-
-             clib_memcpy (hdr->buffer, ipv6_spec, sizeof (*ipv6_spec));
            }
+
+         clib_memcpy (hdr->buffer, ipv6_spec, sizeof (*ipv6_spec));
        }
 
       break;