From e0226c4c907f6109d7c1671df55470d2d06a21cd Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 3 Jun 2019 22:01:58 +0200 Subject: [PATCH] try 1 == nf0 --- doc/plan.org | 8 ++++++++ netpfga/minip4/testdata/gen_testdata.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/plan.org b/doc/plan.org index 6a48fc8..e6a3a02 100644 --- a/doc/plan.org +++ b/doc/plan.org @@ -2896,11 +2896,19 @@ SimpleSumeSwitch( **** sending data to switch port 1 ***** figuring out which port 1 +expected +actual + applyPkt(pkt, 'nf0', pktCnt) expPkt(pkt, 'nf2') # 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000001010000 > # 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000010010000 > + applyPkt(pkt, 'nf0', pktCnt) + expPkt(pkt, 'nf3') + + < 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000040010000 > + < 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000001010000 > *** TODO Create either HDL or PX for supporting payload checksum https://github.com/NetFPGA/P4-NetFPGA-public/issues/13 diff --git a/netpfga/minip4/testdata/gen_testdata.py b/netpfga/minip4/testdata/gen_testdata.py index 930ffb8..9a67dae 100755 --- a/netpfga/minip4/testdata/gen_testdata.py +++ b/netpfga/minip4/testdata/gen_testdata.py @@ -108,7 +108,7 @@ def test_port1(): pkt = Ether(dst=MAC2, src=MAC1) pkt = pad_pkt(pkt, 64) applyPkt(pkt, 'nf0', pktCnt) - expPkt(pkt, 'nf3') + expPkt(pkt, 'nf0') # Test that packets are being mirrored def test_mirror():