Re: [ovs-dev] [BUG][meter] ovs crash when add meter openflow

2024-06-17 Thread Simon Jones
It's PR: Bugfix of meter_set crash. by batmancn · Pull Request #425 · openvswitch/ovs (github.com) <https://github.com/openvswitch/ovs/pull/425> Simon Jones Simon Jones 于2024年6月17日周一 15:35写道: > This patch: > ``` > $ git diff > diff --git a/lib/netdev-offload-tc

Re: [ovs-dev] [BUG][meter] ovs crash when add meter openflow

2024-06-17 Thread Simon Jones
return 0; +} if (!config->bands || config->n_bands < 1 || config->bands[0].type != OFPMBT13_DROP) { ``` Simon Jones Simon Jones 于2024年6月17日周一 15:30写道: > I use this patch to try to fix BUG, I test several times, it's OK > ``` > [root@bogon

Re: [ovs-dev] [BUG][meter] ovs crash when add meter openflow

2024-06-17 Thread Simon Jones
_read_relaxed(&is_tc_init, &init); +if (!init) +return 0; +else +VLOG_WARN("Do not call meter_set before init."); if (!config->bands || config->n_bands < 1 || config->bands[0].type != OFPMBT13_DROP) { ``` Simon Jones Simon Jones

Re: [ovs-dev] [BUG][meter] ovs crash when add meter openflow

2024-06-16 Thread Simon Jones
low_apis. For this BUG. Happens when ovs-vswitchd restart. As bridge/port/meter is all stored in ovsdb. If meter configure called before port configure, then rfa->flow_api->meter_set will be called before rfa->flow_api->init_flow_api. Then BUG happens. ``` Simon Jones Simon Jo

Re: [ovs-dev] [BUG][meter] ovs crash when add meter openflow

2024-06-16 Thread Simon Jones
's why I have BUG. So I think I should add some check... Simon Jones Simon Jones 于2024年6月17日周一 10:06写道: > Oh, I'm using ovs-2.17.2, and I found that there is no .meter_set api > implement in ovs-dpdk, which means only one .meter_set implement in TC. > ``` &

Re: [ovs-dev] [BUG][meter] ovs crash when add meter openflow

2024-06-14 Thread Simon Jones
s not suitable.", netdev_get_name(netdev), rfa->flow_api->type); ``` Simon Jones Simon Jones 于2024年6月14日周五 19:25写道: > Maybe reason is this: > ``` > @netdev_offload_tc and @netdev_offload_dpdk will always be register. > Then the @meter_set api will be c

Re: [ovs-dev] [BUG][meter] ovs crash when add meter openflow

2024-06-14 Thread Simon Jones
ble.", netdev_get_name(netdev), rfa->flow_api->type); } VLOG_INFO("%s: No suitable flow API found.", netdev_get_name(netdev)); return -1; } ONLY one type of rfa->flow_api->init_flow_api (DPDK or TC) could be called. Because after one called, then return 0. ``` S

[ovs-dev] [BUG] Why snat action NOT work while using non-DPDK port in openflow

2024-06-14 Thread Simon Jones
in_port=3,vlan_tci=0x,dl_src=00:00:00:00:04:01,dl_dst=00:00:00:00:03:01,nw_src=10.0.0.3,nw_dst=10.0.0.2,nw_tos=0,nw_ecn=0,nw_ttl=62,tp_src=0,tp_dst=0,tcp_flags=0 bridge("br-int") ---- thaw Resuming from table 3 3. ip,metadata=0x2,in_port=3,dl_dst=00:00:00:

[ovs-dev] [BUG][meter] ovs crash when add meter openflow

2024-06-11 Thread Simon Jones
-pool.c:112 the @pool param is NULL. This is happened ONLY when @netdev_tc_init_flow_api is NOT called. But in code, ONLY after @netdev_tc_init_flow_api is called, the @handle_meter_mod could works on netdev with system type. ``` 3. My question: - How this BUG happen? - Is ther

Re: [ovs-dev] [BUG][revalidator] ovs crash and could NOT fix again after set request_mtu

2024-06-02 Thread Simon Jones
-vswitchd interrupt to process request_mtu. ??? Simon Jones Ilya Maximets 于2024年5月31日周五 17:43写道: > On 5/31/24 04:00, Simon Jones wrote: > > Hi all, > > > > I'm using ovs-dpdk(ovs:2.17.1, dpdk:21.11.1). > > Now I found a BUG that ovs crash and could NOT fix

[ovs-dev] [BUG][revalidator] ovs crash and could NOT fix again after set request_mtu

2024-05-30 Thread Simon Jones
itch could recover. ``` 2. My question ``` - Is this a BUG which has already been resolved? If it is, which commit? - How to resolve this BUG? ``` Thanks~ Simon Jones ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [BUG] [ovs-2.17.1] [ovs-vswitchd] Miss setting port number in openflow while delete port and add port

2024-05-23 Thread Simon Jones
UG? - Is this BUG has been fixed? Fixed in which commit? Thanks~ Simon Jones ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [BUG] Can't add megaflow again after run ovs-appctl dpctl/del-flows

2023-12-26 Thread Simon Jones
1562,tp_dst=10250 ``` I found the cause is: ``` if (upcall.ukey && !ukey_install(udpif, upcall.ukey)) { failed ``` and the log is : ``` WARN|upcall_cb failure: ukey installation fails ``` My question is: 1. Is this a fixed bug? If it is, which commit? 2. Is t

Re: [ovs-dev] [BUG] [ofpacts_equal_stringwise] ovs-ofctl replace xxx will cause flow_mod even if openflow is same

2023-10-30 Thread Simon Jones
low13. Thank you~ Simon Jones Simon Jones 于2023年10月27日周五 17:51写道: > Hi all, > > I'm using ovs-dpdk version 2.17.1. > > Now I found ovs-ofctl replace xxx will cause flow_mod even if openflow is > same. > > Detail: > ``` > [root@localhost ~]# cat flows > in_

[ovs-dev] [BUG] [ofpacts_equal_stringwise] ovs-ofctl replace xxx will cause flow_mod even if openflow is same

2023-10-27 Thread Simon Jones
T controlled by us. Which means the command is NOT controlled by us. But the ovs-ofctl and ovs-vswitchd is code by us. So how to deal with this? Is a good idea to change the behavior of fte_version_equals - ofpacts_equal_stringwise, which could process all version? Thank you~ Simon Jones _

Re: [ovs-dev] [PATCH v3] ovs-tcpdump: Bugfix-of-ovs-tcpdump

2023-08-03 Thread Simon Jones
OK. At last, I think this patch is done, nothing need I do. Is that? Simon Jones Ilya Maximets 于2023年8月3日周四 22:46写道: > On 7/28/23 03:41, Simon Jones wrote: > > From: Simon Jones > > > > ovs-tcpdump: clear auto-assigned ipv6 address of mirror port > > I t

[ovs-dev] [PATCH v3] ovs-tcpdump: Bugfix-of-ovs-tcpdump

2023-07-27 Thread Simon Jones
From: Simon Jones ovs-tcpdump: clear auto-assigned ipv6 address of mirror port ovs-tcpdump will add mipxxx NIC, and on some systems this NIC has IPv6 address by default. For vxlan topology, mipxxx, which has IPv6 address, will be treated as tunnel port, and will got error actions. Prevent

Re: [ovs-dev] [PATCH v2] ovs-tcpdump: Bugfix-of-ovs-tcpdump

2023-07-27 Thread Simon Jones
ok~ Simon Jones Aaron Conole 于2023年7月27日周四 22:32写道: > Simon Jones writes: > > > Hi Aaron, > > > > Thanks for your suggestion. This is my opinion as below. > > > > > > Simon Jones > > > > Aaron Conole 于2023年7月20日周四 23:41写道: &

Re: [ovs-dev] [PATCH v2] ovs-tcpdump: Bugfix-of-ovs-tcpdump

2023-07-26 Thread Simon Jones
Hi Aaron, Thanks for your suggestion. This is my opinion as below. Simon Jones Aaron Conole 于2023年7月20日周四 23:41写道: > Hi Simon, > > Thanks for the contribution! > > Simon Jones writes: > > > From: simon > > > > Fix bug of ovs-tcpdump, which will cau

Re: [ovs-dev] [PATCH v2] ovs-tcpdump: Bugfix-of-ovs-tcpdump

2023-07-26 Thread Simon Jones
ok ~ Many thanks for suggestion, I will fix these ~ Simon Jones Simon Horman 于2023年7月27日周四 01:09写道: > On Thu, Jul 20, 2023 at 11:38:41AM -0400, Aaron Conole wrote: > > Hi Simon, > > > > Thanks for the contribution! > > > > Simon Jones writes: > >

[ovs-dev] [PATCH v2] ovs-tcpdump: Bugfix-of-ovs-tcpdump

2023-07-10 Thread Simon Jones
From: simon Fix bug of ovs-tcpdump, which will cause megaflow action wrong. As use ovs-tcpdump will add mipxxx NIC, and this NIC has IPv6 address by default. For vxlan topology, mipxxx will be treated as tunnel port, and will got error actions. For detail discuss, refer: https://github.com/batm

Re: [ovs-dev] [PATCH] ovs-tcpdump: Bugfix-of-ovs-tcpdump

2023-07-04 Thread Simon Jones
Ok, I will fix these. Simon Jones Ilya Maximets 于2023年7月4日周二 21:35写道: > On 7/3/23 05:46, 冮晔维 wrote: > > From: gangyewei > > Hi. Thanks for the update! Please, add a version number while > sending new versions though, e.g. [PATCH v2]. Otherwise, it's > hard

Re: [ovs-dev] [PATCH] ovs-tcpdump: Bugfix-of-ovs-tcpdump

2023-07-02 Thread Simon Jones
Ok, thanks for the clarification. I will modify and send this patch again by another email named as gangyewei. Simon Jones Ilya Maximets 于2023年6月29日周四 22:55写道: > On 6/28/23 03:12, Simon Jones wrote: > > This patch is same as MR: https://github.com/openvswitch/ovs

[ovs-dev] [PATCH] ovs-tcpdump: Bugfix-of-ovs-tcpdump

2023-06-27 Thread Simon Jones
7;ip', '-6', 'addr', 'flush', 'dev', str(tap_name)])) + pipe.wait() + def _remove_dst_if_linux(tap_name): _doexec( -- 2.24.3 (Apple Git-128) Simon Jones ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [BUG] [ovs-tcpdump] Got duplicate icmp when start ovs-tcpdump in vxlan topology

2023-06-27 Thread Simon Jones
This bug is fixed in https://github.com/openvswitch/ovs/pull/415 Simon Jones Simon Jones 于2023年6月15日周四 21:51写道: > Add > : ovs-disc...@openvswitch.org > ---- > Simon Jones > > > Simon Jones 于2023年6月15日周四 21:48写道: > >> I found only vxlan topology has this bug

Re: [ovs-dev] [BUG] [ovs-tcpdump] Got duplicate icmp when start ovs-tcpdump in vxlan topology

2023-06-15 Thread Simon Jones
Add : ovs-disc...@openvswitch.org Simon Jones Simon Jones 于2023年6月15日周四 21:48写道: > I found only vxlan topology has this bug. > > Other topology such as use patch port , no bug. > ---- > Simon Jones > > > Simon Jones 于2023年6月9日周五 15:20写道: > >> The reason

Re: [ovs-dev] [BUG] [ovs-tcpdump] Got duplicate icmp when start ovs-tcpdump in vxlan topology

2023-06-15 Thread Simon Jones
I found only vxlan topology has this bug. Other topology such as use patch port , no bug. Simon Jones Simon Jones 于2023年6月9日周五 15:20写道: > The reason why HOST-2 got DUP ICMP reply is HOST-1 got DUP ICMP request. > The reason HOST-1 got DUP ICMP request is two tnl_pop(2) in acti

Re: [ovs-dev] [BUG] [ovs-tcpdump] Got duplicate icmp when start ovs-tcpdump in vxlan topology

2023-06-09 Thread Simon Jones
The reason why HOST-2 got DUP ICMP reply is HOST-1 got DUP ICMP request. The reason HOST-1 got DUP ICMP request is two tnl_pop(2) in actions in megaflow-2. So I have only 1 question: Why megaflow-2 on HOST-1 has two tnl_pop(2) in actions ? Simon Jones Simon Jones 于2023年6月9日周五 11:45写道

[ovs-dev] [BUG] [ovs-tcpdump] Got duplicate icmp when start ovs-tcpdump in vxlan topology

2023-06-08 Thread Simon Jones
seq=14 ttl=64 time=1.037 ms (DUP!) 64 bytes from 1.1.1.1: icmp_seq=15 ttl=64 time=0.965 ms ``` Additional, after I stop ovs-tcpdump or link down mip0(ip link set mip0 down), there is no DUP IMCP reply. ** 3. Here I have 2 questions ** 1. Why megaflow-2 on HOST-1 has two tnl_pop(2) in actions ? 2.

[ovs-dev] How to dynamic set cpu isolation of pmd thread in ovs-dpdk ?

2023-05-08 Thread Simon Jones
hese 4 core. And then 5'th pmd thread will create on other core. And if port-1, port-2 down, remove pmd thread from core-1, core-2 , and then create pmd thread from core-1. Like so on. Is there some good idea about this ? Or some good design of other software to solve thi

[ovs-dev] [bug][crash][ovs-dpdk] crash BUG of two hardware nic in OVS-DPDK when ONLY using `scp`.

2021-11-25 Thread Simon Jones
skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=3e:cd:a3:ec:55:f3,dst=01:00:5e:00:00:16),eth_type(0x0800),ipv4(src=10.33.0.76,dst=224.0.0.22,proto=2,tos=0,ttl=1,frag=no) ``` So what's root cause of this B

Re: [ovs-dev] What's the problem of high cpu usage of pmd thread in ovs-dpdk version 2.13

2021-10-09 Thread Simon Jones
BTW, if this is not problem? As there are 8 core, pmd takes only 1 core. So who has also run ovs-dpdk, what's your top result? Simon Jones Simon Jones 于2021年10月9日周六 下午2:35写道: > This is perf result, it shows mlx5_rx_burst_vec function is called > frequently. But there is no pa

Re: [ovs-dev] What's the problem of high cpu usage of pmd thread in ovs-dpdk version 2.13

2021-10-08 Thread Simon Jones
ler [kernel.kallsyms] [k] tracesys > | > --0.95%--tracesys > > 0.73% 0.56% pmd-c01/id:7 libpthread-2.17.so [.] __pthread_once > | > --0.56%--0x18 >| > --0.55%--ofp_t

[ovs-dev] What's the problem of high cpu usage of pmd thread in ovs-dpdk version 2.13

2021-10-08 Thread Simon Jones
next_cfg: 90 other_config: {dpdk-extra=" --proc-type primary ", dpdk-hugepage-dir="/dev/hugepages", dpdk-init=True, dpdk-lcore-mask="0x1", dpdk-mem-channels="4", dpdk-socket-mem="1024", pmd-cpu-mask="0x2"} ovs_version