Skip to content

Commit

Permalink
update mdns
Browse files Browse the repository at this point in the history
  • Loading branch information
Iolop committed Nov 26, 2023
1 parent ff0f3bd commit c3607fb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2023-11-20-dpdk-初学-12-vmdq.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: DPDK-初学-12-vmdq
title: DPDK-初学(12)-vmdq
date: 2023-11-20 08:44 +0800
categories: [DPDK noob]
tags: [dpdk]
Expand Down
22 changes: 22 additions & 0 deletions _posts/2023-11-26-dpdk-尝试-2-mdns收发包的问题.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: post
title: DPDK-尝试(2)-mdns收发包的问题
date: 2023-11-26 23:24 +0800
categories: [DPDK noob]
tags: [dpdk]
---
最近在完善mdns的时候,收发包这里碰到了一点问题。

使用`rte_eal_mp_remote_launch`在其他lcore启动了`dns_worker_start`这个收发包入口。原本是想在每一个lcore来处理对应的ports这样的思路,但是发现在接受的时候有问题。当`PORT_PER_LCORE`为1时,希望形成一个(lcore1,port0),(lcore2,port1)...这样一种配对处理,但是在测试端发包的时候,接收不到数据。

```c
rte_eal_mp_remote_launch(dns_worker_start, NULL, SKIP_MAIN);
...
for (i = 0; i < PORT_PER_LCORE; i++)
{
nb_rx = rte_eth_rx_burst(ports_matched[i], 0, pkts_burst,
MAX_PKT_BURST);
}
```
奇怪的是,假如我修改成了(lcore1,port0),(lcore2,port0)...这样的结构,反而lcore1能够正常的接到数据了。这一点真的难理解,后面看看源码来能不能解决。

0 comments on commit c3607fb

Please sign in to comment.