Commit d70f70ca authored by Georgios Katsikas's avatar Georgios Katsikas Committed by Tom Barbette

Updated DPDK ring configuration example

Signed-off-by: Georgios Katsikas's avatarGeorgios Katsikas <katsikas.gp@gmail.com>
parent eb4ccfbd
// Run: <path-to-click> -c 55 -n 4 --proc-type primary -v -- conf/dpdk-primary.click
// Run: sudo bin/click --dpdk -c 0x55 -n 4 --proc-type primary -v -- conf/dpdk/dpdk-primary.click
define(
$iface0 0,
$iface1 1,
$queueSize 1024,
$burst 32,
$iface0 0,
$iface1 1,
$queueSize 1024,
$burst 32
);
// Module's I/O
......@@ -15,27 +15,19 @@ nicIn1 :: FromDPDKDevice($iface1, BURST $burst);
nicOut1 :: ToDPDKDevice ($iface1, IQUEUE $queueSize, BURST $burst);
// Tx ring from Main (primary) to NF1 (secondary)
main_to_nf1 :: ToDPDKRing (MEM_POOL 1, FROM_PROC main_tx, TO_PROC nf1_rx, IQUEUE $queueSize, BURST $burst);
main_to_nf1 :: ToDPDKRing (MEM_POOL 1, FROM_PROC main_tx, TO_PROC nf1_rx, IQUEUE $queueSize);
// Rx ring from NF1 (secondary) back to Main (primary)
main_from_nf1 :: FromDPDKRing(MEM_POOL 2, FROM_PROC main_rx, TO_PROC nf1_tx, BURST $burst);
main_from_nf1 :: FromDPDKRing(MEM_POOL 2, FROM_PROC main_rx, TO_PROC nf1_tx);
// NIC 0 --> Main --> NF1
nicIn0
// -> Strip(14)
// -> MarkIPHeader()
// -> IPPrint("Before-NF1", TTL true, LENGTH true)
// -> Unstrip(14)
-> main_to_nf1;
-> Print("Before-NF1")
-> main_to_nf1;
// ... NF1 --> Main --> NIC 1
main_from_nf1
// -> Strip(14)
// -> MarkIPHeader()
// -> IPPrint(" After-NF1", TTL true, LENGTH true)
// -> Unstrip(14)
-> nicOut1;
-> Print(" After-NF1")
-> nicOut1;
Idle
-> nicOut0;
nicIn1
-> Discard;
\ No newline at end of file
Idle -> nicOut0;
nicIn1 -> Discard;
// Run: <path-to-click> -c 4 -n 4 --proc-type secondary -v -- conf/dpdk-secondary.click
// Run: sudo bin/click --dpdk -c 0x4 -n 4 --proc-type secondary -v -- conf/dpdk/dpdk-secondary.click
define(
$queueSize 1024,
$burst 32,
$queueSize 1024
);
// Rx ring from Main (primary) to NF1 (secondary)
nf1_from_main :: FromDPDKRing(MEM_POOL 1, FROM_PROC nf1_rx, TO_PROC main_tx, BURST $burst);
nf1_from_main :: FromDPDKRing(MEM_POOL 1, FROM_PROC nf1_rx, TO_PROC main_tx);
// Tx ring from NF1 (secondary) back to Main (primary)
nf1_to_main :: ToDPDKRing (MEM_POOL 2, FROM_PROC nf1_tx, TO_PROC main_rx, IQUEUE $queueSize, BURST $burst);
nf1_to_main :: ToDPDKRing (MEM_POOL 2, FROM_PROC nf1_tx, TO_PROC main_rx, IQUEUE $queueSize);
nf1_from_main
// -> Strip(14)
// -> MarkIPHeader()
// -> IPPrint(NF1, TTL true, LENGTH true)
// -> Unstrip(14)
-> nf1_to_main;
-> Print(NF1)
-> nf1_to_main;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment