{"id":16161442,"url":"https://github.com/gamemann/the-dpdk-stats","last_synced_at":"2026-03-10T05:04:06.278Z","repository":{"id":92735890,"uuid":"433300049","full_name":"gamemann/The-DPDK-Stats","owner":"gamemann","description":"A simple DPDK application that calculates stats for dropped and forwarded packets depending on the command line.","archived":false,"fork":false,"pushed_at":"2023-06-01T06:39:49.000Z","size":13,"stargazers_count":26,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T19:22:15.642Z","etag":null,"topics":["counter","data","development","dpdk","dropped","forward","kit","packet","plane","stats"],"latest_commit_sha":null,"homepage":"https://moddingcommunity.com/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gamemann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-30T05:02:53.000Z","updated_at":"2025-02-16T12:55:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdb3a099-661f-4006-9155-edbff68689e2","html_url":"https://github.com/gamemann/The-DPDK-Stats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gamemann/The-DPDK-Stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamemann%2FThe-DPDK-Stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamemann%2FThe-DPDK-Stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamemann%2FThe-DPDK-Stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamemann%2FThe-DPDK-Stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gamemann","download_url":"https://codeload.github.com/gamemann/The-DPDK-Stats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamemann%2FThe-DPDK-Stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30325603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["counter","data","development","dpdk","dropped","forward","kit","packet","plane","stats"],"created_at":"2024-10-10T02:25:16.197Z","updated_at":"2026-03-10T05:04:06.224Z","avatar_url":"https://github.com/gamemann.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The DPDK Stats\n## Description\nA small DPDK application that increments a basic packet counter for TCP or UDP packets depending on what's specified in the command line (UDP is default). The amount of packets per second is outputted on a new line each second and total packets is outputted before the program exits.\n\nDropped and forward (TX) mode is supported (dropped mode is default). When TX is specified in the command line, the source and destination MAC and IP addresses are swapped along with the TCP/UDP ports. Afterwards, the packet is forwarded.\n\nThis repository uses my DPDK Common [project](https://github.com/gamemann/The-DPDK-Common) in an effort to make things simpler.\n\n## Requirements\n* [The DPDK](https://dpdk.org) - Intel's Data Plane Development Kit which acts as a kernel bypass library which allows for fast network packet processing (one of the fastest libraries out there for packet processing).\n* [The DPDK Common](https://github.com/gamemann/The-DPDK-Common) - A project written by me aimed to make my DPDK projects simpler to setup/run (included as a submodule to this project).\n\n## Building The DPDK\nIf you want to build the DPDK using default options, the following should work assuming you have the requirements such as `ninja` and `meson`.\n\n```\ngit clone https://github.com/DPDK/dpdk.git\ncd dpdk/\nmeson build\ncd build\nninja\nsudo ninja install\nsudo ldconfig\n```\n\nAll needed header files from the DPDK will be stored inside of `/usr/local/include/`.\n\nYou may receive `ninja` and `meson` using the following.\n\n```\nsudo apt update\nsudo apt install python3 python3-pip\nsudo pip3 install meson # Pip3 is used because 'apt' has an outdated version of Meson usually.\nsudo apt install ninja-build\n```\n\n## Building This Project\nYou may use `git` and `make` to build and install this application.\n\n```\ngit clone --recursive https://github.com/gamemann/The-DPDK-Stats.git\ncd The-DPDK-Stats/\nmake\nsudo make install\n```\n\nThe `dpdk-stats` executable will be available inside the `build/` directory. If you use `sudo make install`, it will be installed to `/usr/bin/` which should be in your `$PATH`. Therefore, you can simply run the application with `dpdk-stats` from any directory.\n\n## EAL Parameters\nThis application supports DPDK's EAL paramters. These may be found [here](http://doc.dpdk.org/guides/linux_gsg/linux_eal_parameters.html).\n\nThis is useful for specifying the amount of l-cores and ports to configure for example.\n\n## Command Line\nThe following command line options are available.\n\n```\n-p --portmask =\u003e The port mask to configure (e.g. 0xFFFF).\n-P --portmap =\u003e The port map to configure (in '(x, y),(b,z)' format).\n-q --queues =\u003e The amount of RX and TX queues to setup per port (default and recommended value is 1).\n-x --promisc =\u003e Whether to enable promiscuous on all enabled ports.\n-t --tx =\u003e Forward packets instead of dropping them.\n-z --tcp =\u003e Only count TCP packets instead of UDP.\n```\n\nHere is an example.\n\n```\ndpdk-stats -l 0-1 -n 1 -- -q 1 -p 0xff -t\n```\n\n## Credits\n* [Christian Deacon](https://github.com/gamemann)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamemann%2Fthe-dpdk-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamemann%2Fthe-dpdk-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamemann%2Fthe-dpdk-stats/lists"}