[ovs-discuss] 答复: Do you know how I can set nd_options_type field for ipv6 ND message?
Yi Yang (杨燚)-云服务集团
yangyi01 at inspur.com
Wed Feb 24 02:02:34 UTC 2021
Out of curious, I remember OVN doesn't support OVS DPDK, I believe OVN also does IPv6 ND by openflow, is it acceptable to use slow path to handle IPv6 ND for OVS kernel datapath?
-----邮件原件-----
发件人: Yi Yang (杨燚)-云服务集团
发送时间: 2021年2月24日 9:56
收件人: 'u9012063 at gmail.com' <u9012063 at gmail.com>
抄送: 'fbl at sysclose.org' <fbl at sysclose.org>; 'blp at ovn.org' <blp at ovn.org>; 'ovs-dev at openvswitch.org' <ovs-dev at openvswitch.org>; 'ovs-discuss at openvswitch.org' <ovs-discuss at openvswitch.org>
主题: 答复: [ovs-discuss] Do you know how I can set nd_options_type field for ipv6 ND message?
重要性: 高
Thanks, got it, I'll add this to kernel data path if nobody did it.
-----邮件原件-----
发件人: William Tu [mailto:u9012063 at gmail.com]
发送时间: 2021年2月24日 2:31
收件人: Yi Yang (杨燚)-云服务集团 <yangyi01 at inspur.com>
抄送: fbl at sysclose.org; blp at ovn.org; ovs-dev at openvswitch.org; ovs-discuss at openvswitch.org
主题: Re: [ovs-discuss] Do you know how I can set nd_options_type field for ipv6 ND message?
On Sun, Feb 21, 2021 at 9:39 PM Yi Yang (杨燚)-云服务集团 <yangyi01 at inspur.com> wrote:
>
> Thanks William, it is my ovs-ofctl issue, my ovs-vswitchd is new, but ovs-ofctl is old, but after I used ovs-ofctl, I still saw issues:
>
> OFPT_ERROR (OF1.3) (xid=0x6): OFPBAC_BAD_SET_ARGUMENT OFPT_FLOW_MOD
> (OF1.3) (xid=0x6): ADD
> icmp6,icmp_type=135,icmp_code=0,nd_sll=22:70:e0:d0:fc:75
> cookie:0x1234567890123456
> actions=set_field:136->icmpv6_type,set_field:0->icmpv6_code,set_field:
> 2->nd_options_type,resubmit(,0) OFPT_ERROR (OF1.3) (xid=0x6):
> OFPBAC_BAD_SET_ARGUMENT OFPT_FLOW_MOD (OF1.3) (xid=0x6): ADD
> icmp6,icmp_type=136,icmp_code=0 cookie:0x1234567890123456
> actions=move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],set_field:22:70:e0:d0:
> fc:76->eth_src,move:NXM_NX_IPV6_SRC[]->NXM_NX_IPV6_DST[],set_field:fe8
> 0::2070:e0ff:fed0:fc76->ipv6_src,set_field:22:70:e0:d0:fc:76->nd_tll,s
> et_field:57344->nd_reserved,IN_PORT
>
> I saw this thread https://www.mail-archive.com/ovs-dev@openvswitch.org/msg47815.html discussed it, it can work after I applied patch in https://www.mail-archive.com/ovs-dev@openvswitch.org/msg47815.html.
>
> So @Flavio, maybe you need to apply the patch in https://www.mail-archive.com/ovs-dev@openvswitch.org/msg47815.html to fix this issue in kernel datapath, per my check, kernel datapath with this patch can work, I verified it by using openflow to do NS reply and ICMPv6 ping reply.
>
> William, I guess you're using ovs userspace, so it doesn't have this issue.
Yes, I'm testing it using userspace datapath. I think kernel datapath doesn't support setting nd_ext.
Look like you can get it working by doing it in slow path, like the patch you pointed to.
William
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3600 bytes
Desc: not available
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20210224/b0c6a38a/attachment.p7s>
More information about the discuss
mailing list