1 unstable release

Uses old Rust 2015

0.0.1 Jun 1, 2017

#15 in #receive-data

AGPL-3.0

1MB
17K SLoC

[](This file is part of dpdk. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/dpdk/master/COPYRIGHT. No part of dpdk, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.) [](Copyright © 2016-2017 The developers of dpdk. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/dpdk/master/COPYRIGHT.)

dpdk

Clippy Linting Result

dpdk is a rust crate.

Licensing

The license for this project is AGPL-3.0.

Notes

To extract the list of Virtual and Physical devices as JSON lines, do:-

tempDirPath=".cargo/target/x86_64-unknown-linux-musl/debug/build/dpdk-sys-1df24fe0b3b21d05/out/dpdk-temp"
find "$tempDirPath" -type f -name '*.c' | xargs grep -h 'PMD_INFO_STRING=' | grep '^const' | awk -F'PMD_INFO_STRING= ' '{print $2}' | sed -e 's/\\//g' -e 's/";$//g' -e 's/ : /: /g' -e 's/\],\[/], [/g' -e 's/ \]}$/]}/g'

For example:-

{"name": "net_bnxt", "pci_ids": [[5348, 5832, 65535, 65535], [5348, 5833, 65535, 65535], [5348, 5834, 65535, 65535], [5348, 5835, 65535, 65535], [5348, 5840, 65535, 65535], [5348, 5841, 65535, 65535], [5348, 5842, 65535, 65535], [5348, 5843, 65535, 65535], [5348, 5844, 65535, 65535], [5348, 5855, 65535, 65535]]}
{"name": "net_cxgbe", "pci_ids": [[5157, 21504, 65535, 65535], [5157, 21505, 65535, 65535], [5157, 21506, 65535, 65535], [5157, 21507, 65535, 65535], [5157, 21508, 65535, 65535], [5157, 21509, 65535, 65535], [5157, 21510, 65535, 65535], [5157, 21511, 65535, 65535], [5157, 21512, 65535, 65535], [5157, 21513, 65535, 65535], [5157, 21514, 65535, 65535], [5157, 21517, 65535, 65535], [5157, 21518, 65535, 65535], [5157, 21520, 65535, 65535], [5157, 21521, 65535, 65535], [5157, 21522, 65535, 65535], [5157, 21523, 65535, 65535], [5157, 21524, 65535, 65535], [5157, 21525, 65535, 65535], [5157, 21632, 65535, 65535], [5157, 21633, 65535, 65535], [5157, 21634, 65535, 65535], [5157, 21635, 65535, 65535], [5157, 21636, 65535, 65535], [5157, 21637, 65535, 65535], [5157, 21638, 65535, 65535], [5157, 21639, 65535, 65535], [5157, 21640, 65535, 65535], [5157, 21641, 65535, 65535], [5157, 21648, 65535, 65535], [5157, 21649, 65535, 65535], [5157, 21650, 65535, 65535]]}
{"name": "net_e1000_em", "pci_ids": [[32902, 4110, 65535, 65535], [32902, 4111, 65535, 65535], [32902, 4113, 65535, 65535], [32902, 4112, 65535, 65535], [32902, 4114, 65535, 65535], [32902, 4125, 65535, 65535], [32902, 4190, 65535, 65535], [32902, 4191, 65535, 65535], [32902, 4192, 65535, 65535], [32902, 4313, 65535, 65535], [32902, 4314, 65535, 65535], [32902, 4260, 65535, 65535], [32902, 4309, 65535, 65535], [32902, 4261, 65535, 65535], [32902, 4284, 65535, 65535], [32902, 4221, 65535, 65535], [32902, 4222, 65535, 65535], [32902, 4223, 65535, 65535], [32902, 4281, 65535, 65535], [32902, 4250, 65535, 65535], [32902, 4307, 65535, 65535], [32902, 4342, 65535, 65535], [32902, 5388, 65535, 65535], [32902, 5434, 65535, 65535], [32902, 5435, 65535, 65535], [32902, 5466, 65535, 65535], [32902, 5465, 65535, 65535], [32902, 5536, 65535, 65535], [32902, 5537, 65535, 65535], [32902, 5538, 65535, 65535], [32902, 5539, 65535, 65535]]}
{"name": "net_e1000_igb", "pci_ids": [[32902, 4297, 65535, 65535], [32902, 4326, 65535, 65535], [32902, 4327, 65535, 65535], [32902, 4328, 65535, 65535], [32902, 5414, 65535, 65535], [32902, 5386, 65535, 65535], [32902, 5400, 65535, 65535], [32902, 5389, 65535, 65535], [32902, 4263, 65535, 65535], [32902, 4265, 65535, 65535], [32902, 4310, 65535, 65535], [32902, 5390, 65535, 65535], [32902, 5391, 65535, 65535], [32902, 5392, 65535, 65535], [32902, 5393, 65535, 65535], [32902, 5398, 65535, 65535], [32902, 5415, 65535, 65535], [32902, 5409, 65535, 65535], [32902, 5410, 65535, 65535], [32902, 5411, 65535, 65535], [32902, 5412, 65535, 65535], [32902, 5446, 65535, 65535], [32902, 5427, 65535, 65535], [32902, 5428, 65535, 65535], [32902, 5429, 65535, 65535], [32902, 5430, 65535, 65535], [32902, 5431, 65535, 65535], [32902, 5432, 65535, 65535], [32902, 5433, 65535, 65535], [32902, 8000, 65535, 65535], [32902, 8001, 65535, 65535], [32902, 8005, 65535, 65535], [32902, 1080, 65535, 65535], [32902, 1082, 65535, 65535], [32902, 1084, 65535, 65535], [32902, 1088, 65535, 65535] ]}";const char net_e1000_igb_vf_pmd_info[] __attribute__((used)) = "
{"name": "net_ena", "pci_ids": [[7439, 60448, 65535, 65535], [7439, 60449, 65535, 65535]]}
{"name": "net_enic", "pci_ids": [[4407, 67, 65535, 65535], [4407, 113, 65535, 65535]]}
{"name": "net_fm10k", "pci_ids": [[32902, 5540, 65535, 65535], [32902, 5584, 65535, 65535], [32902, 5541, 65535, 65535]]}
{"name": "net_i40e", "pci_ids": [[32902, 5490, 65535, 65535], [32902, 5492, 65535, 65535], [32902, 5504, 65535, 65535], [32902, 5505, 65535, 65535], [32902, 5507, 65535, 65535], [32902, 5508, 65535, 65535], [32902, 5509, 65535, 65535], [32902, 5510, 65535, 65535], [32902, 5511, 65535, 65535], [32902, 5512, 65535, 65535], [32902, 5513, 65535, 65535], [32902, 5514, 65535, 65535], [32902, 5515, 65535, 65535], [32902, 14156, 65535, 65535], [32902, 14286, 65535, 65535], [32902, 14287, 65535, 65535], [32902, 14288, 65535, 65535], [32902, 14289, 65535, 65535], [32902, 14290, 65535, 65535], [32902, 14291, 65535, 65535], [32902, 14292, 65535, 65535]]}
{"name": "net_i40e_vf", "pci_ids": [[32902, 5452, 65535, 65535], [32902, 5489, 65535, 65535], [32902, 14157, 65535, 65535], [32902, 14285, 65535, 65535], [32902, 14297, 65535, 65535]]}
{"name": "net_ixgbe", "pci_ids": [[32902, 4278, 65535, 65535], [32902, 5384, 65535, 65535], [32902, 4294, 65535, 65535], [32902, 4295, 65535, 65535], [32902, 4296, 65535, 65535], [32902, 5387, 65535, 65535], [32902, 4315, 65535, 65535], [32902, 4317, 65535, 65535], [32902, 4332, 65535, 65535], [32902, 4337, 65535, 65535], [32902, 4321, 65535, 65535], [32902, 4340, 65535, 65535], [32902, 4343, 65535, 65535], [32902, 5396, 65535, 65535], [32902, 5399, 65535, 65535], [32902, 4344, 65535, 65535], [32902, 12, 65535, 65535], [32902, 4345, 65535, 65535], [32902, 4347, 65535, 65535], [32902, 4521, 65535, 65535], [32902, 8050, 65535, 65535], [32902, 6096, 65535, 65535], [32902, 1136, 65535, 65535], [32902, 5418, 65535, 65535], [32902, 5417, 65535, 65535], [32902, 5383, 65535, 65535], [32902, 5453, 65535, 65535], [32902, 5450, 65535, 65535], [32902, 5464, 65535, 65535], [32902, 5463, 65535, 65535], [32902, 4348, 65535, 65535], [32902, 5404, 65535, 65535], [32902, 5455, 65535, 65535], [32902, 5416, 65535, 65535], [32902, 5472, 65535, 65535], [32902, 5548, 65535, 65535], [32902, 5549, 65535, 65535], [32902, 5550, 65535, 65535], [32902, 5475, 65535, 65535], [32902, 5585, 65535, 65535], [32902, 5570, 65535, 65535], [32902, 5571, 65535, 65535], [32902, 5572, 65535, 65535], [32902, 5574, 65535, 65535], [32902, 5575, 65535, 65535], [32902, 5576, 65535, 65535], [32902, 5578, 65535, 65535], [32902, 5580, 65535, 65535], [32902, 5582, 65535, 65535], [32902, 5604, 65535, 65535], [32902, 5605, 65535, 65535], [32902, 5546, 65535, 65535], [32902, 5547, 65535, 65535] ]}";const char net_ixgbe_vf_pmd_info[] __attribute__((used)) = "
{"name": "net_vmxnet3", "pci_ids": [[5549, 1968, 65535, 65535]]}
{"name": "net_virtio", "pci_ids": [[6900, 4096, 65535, 65535]]}

Dependencies

~4MB
~81K SLoC