generated from cotes2020/chirpy-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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能够正常的接到数据了。这一点真的难理解,后面看看源码来能不能解决。 |