vipinpv85 / DPDK-Suricata_3.0

add dpdk interface and packet processing to suricata in worker mode
https://github.com/vipinpv85/DPDK-Suricata_3.0
GNU Lesser General Public License v3.0
62 stars 34 forks source link

Need help in understanding code 'source-dpdkintel.c.' #20

Closed Shylockyk closed 4 years ago

Shylockyk commented 4 years ago

Hi bro. I am back again. :) Describe the bug Recently I am learning your code in this project.But some codes are confusing me, emmm,maybe I don't make sense of them.

To Reproduce Steps to reproduce the behavior:

  1. Go to the file 'source-dpdkintel.c.'
  2. Scroll down to the function 'launchDpdkFrameParser''s first loop
  3. In the function 'rte_eth_link_get',the args portMap's index, why you use the 'portIndex' instead of 'reqCores', the 'portIndex' is always 0.

Screenshots picturemessage_dyw1ov24 wky

vipinpv85 commented 4 years ago

This section is to raise issues. I am not sure why are trying to open a question as a issue.

Note: If you really think it is an issue please justify with your findings.

vipinpv85 commented 4 years ago

Check out latest, I have been working on seperate branch dpdk-acl which is now merged back to master.