Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions backends/graphs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2017 Barefoot Networks, Inc.

SPDX-License-Identifier: Apache-2.0
-->

<!--!
\page graphs_backend Graphs Backend
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2017 Barefoot Networks, Inc.

SPDX-License-Identifier: Apache-2.0
6 changes: 6 additions & 0 deletions testdata/p4_16_errors/issue1803_same_table_name.p4
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2019 Barefoot Networks, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <core.p4>
#include <v1model.p4>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
issue1803_same_table_name.p4(13): [--Wwarn=unused] warning: 'empty' is unused
issue1803_same_table_name.p4(19): [--Wwarn=unused] warning: 'empty' is unused
action empty() { }
^^^^^
[--Werror=duplicate] error: Name 't0' is used for multiple table objects in the P4Info message
Expand Down
6 changes: 6 additions & 0 deletions testdata/p4_16_samples/action_selector_unused-bmv2.p4
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2017 Barefoot Networks, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <core.p4>
#include <v1model.p4>

Expand Down
4 changes: 4 additions & 0 deletions testdata/p4_16_samples/constant-in-calculation-bmv2.stf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2017 Barefoot Networks, Inc.
#
# SPDX-License-Identifier: Apache-2.0

# bit<16> A
# In the output we need A = 1

Expand Down
6 changes: 6 additions & 0 deletions testdata/p4_16_samples/psa-custom-type-counter-index.p4
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2020 VMware, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <core.p4>
#include <bmv2/psa.p4>

Expand Down
6 changes: 6 additions & 0 deletions testdata/p4_16_samples/same_name_for_table_and_action.p4
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2019 Barefoot Networks, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <core.p4>
#include <v1model.p4>

Expand Down
4 changes: 4 additions & 0 deletions testdata/p4_16_samples/stack_complex-bmv2.stf
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# SPDX-FileCopyrightText: 2017 Barefoot Networks, Inc.
#
# SPDX-License-Identifier: Apache-2.0

packet 0 00000001 00000002
expect 4 00000001 00000002
4 changes: 4 additions & 0 deletions testdata/p4_16_samples/table-entries-ser-enum-bmv2.stf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Barefoot Networks, Inc.
#
# SPDX-License-Identifier: Apache-2.0

# enum bit<8> MyEnum1B { MBR1 = 0, MBR2 = 0xff }
# enum bit<16> MyEnum2B { MBR1 = 10, MBR2 = 0xab00 }
# header hdr { MyEnum1B f1; MyEnum2B f2; }
Expand Down
6 changes: 6 additions & 0 deletions testdata/p4_16_samples/v1model-digest-custom-type.p4
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2020 VMware, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

// P4 program adapted from one submitted by Andy Fingerhut (@jafingerhut) in https://github.com/p4lang/p4c/issues/2234.
#include <core.p4>
#include <v1model.p4>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
action_selector_unused-bmv2.p4(14): [--Wwarn=unused] warning: 'empty' is unused
action_selector_unused-bmv2.p4(20): [--Wwarn=unused] warning: 'empty' is unused
action empty() { }
^^^^^
action_selector_unused-bmv2.p4(18): [--Wwarn=unused] warning: 'drop' is unused
action_selector_unused-bmv2.p4(24): [--Wwarn=unused] warning: 'drop' is unused
action drop() { mark_to_drop(smeta); }
^^^^
action_selector_unused-bmv2.p4(20): [--Wwarn=unused] warning: 'as' is unused
action_selector_unused-bmv2.p4(26): [--Wwarn=unused] warning: 'as' is unused
action_selector (HashAlgorithm.identity, 32w1024, 32w10) as;
^^
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
same_name_for_table_and_action.p4(13): [--Wwarn=unused] warning: 'empty' is unused
same_name_for_table_and_action.p4(19): [--Wwarn=unused] warning: 'empty' is unused
action empty() { }
^^^^^
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
v1model-digest-custom-type.p4(9): [--Wwarn=unused] warning: 'switchID_t' is unused
v1model-digest-custom-type.p4(15): [--Wwarn=unused] warning: 'switchID_t' is unused
typedef bit<32> switchID_t;
^^^^^^^^^^
v1model-digest-custom-type.p4(10): [--Wwarn=unused] warning: 'qdepth_t' is unused
v1model-digest-custom-type.p4(16): [--Wwarn=unused] warning: 'qdepth_t' is unused
typedef bit<19> qdepth_t;
^^^^^^^^
v1model-digest-custom-type.p4(11): [--Wwarn=unused] warning: 'timestamp_t' is unused
v1model-digest-custom-type.p4(17): [--Wwarn=unused] warning: 'timestamp_t' is unused
typedef bit<48> timestamp_t;
^^^^^^^^^^^
v1model-digest-custom-type.p4(12): [--Wwarn=unused] warning: 'timedelta_t' is unused
v1model-digest-custom-type.p4(18): [--Wwarn=unused] warning: 'timedelta_t' is unused
typedef bit<32> timedelta_t;
^^^^^^^^^^^
Loading