aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/avf
diff options
context:
space:
mode:
authorTing Xu <ting.xu@intel.com>2022-12-13 03:10:54 +0000
committerDamjan Marion <dmarion@0xa5.net>2023-02-08 10:10:28 +0000
commit11d9d02459ee3ac6ae402dd565aabbdfeea2c4fb (patch)
tree11b8231914e0c8d4005a98d10db02fecf21e05c1 /src/plugins/avf
parent25ab42e33b03d9d9a0e3478c3ee346891cf65aef (diff)
avf dpdk: fix incorrect handling of IPv6 src address in flow
In current flow creating process in native avf and dpdk-plugins, when parsing the input arguments, it does not copy IPv6 src address correctly, so that IPv6 src address will not be configured in any flow rule, and any packet with the same address will not be matched. Type: fix Signed-off-by: Ting Xu <ting.xu@intel.com> Change-Id: Ic957c57e3e1488b74e6281f4ed1df7fd491af35c
Diffstat (limited to 'src/plugins/avf')
-rw-r--r--src/plugins/avf/avf_fdir_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/avf/avf_fdir_lib.c b/src/plugins/avf/avf_fdir_lib.c
index cf774a7d138..52937874186 100644
--- a/src/plugins/avf/avf_fdir_lib.c
+++ b/src/plugins/avf/avf_fdir_lib.c
@@ -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;