network programming - I am running DPDK packet Gen application. The application does not find any ports by itself and even If I try to add one it doesnt work? -


http://pktgen.readthedocs.org/en/latest/running.html pktgen dpdk application. screenshot in link shows how ports configured. me doesnt configure @ all. looking beginner

first, may know, pktgen application use dpkd framework, thus, should have bind @ least 1 nic dpdk. check documentation dpdk: dpdk building instructions. should see nic correctly bound command:

# path/to/dpdk/tools/dpdk_nic_bind.py --status 

then, can run pktgen. ports want use specified -p option (it's specific pktgen option it's after --). it's port mask, instance, if want first port (port 0) can use -p 0x1.

then, -m option permit choose core handle dpdk port. syntax not obvious, suggest read doc of pktgen option: pktgen command line options. example, short, option -m "[1:3].0" says want cpu core 1 handle "rx port 0", , cpu core 3 handle "tx port 0".

a simple command line pktgen, if use 1 port running on 2 cores be:

./app/pktgen -c 0x7 -n 3 -- -p 0x1 -p -m "[1:2].0" 

in case cpu core 1 , 2 (possible because of "-c 0x7 option") used handle respectively rx , tx of port 0 (configured "-p 0x1"). note -p promiscuous mode.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -