From 8dd9be0835f69a6e23fb25b4eed27b26610609d1 Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Wed, 20 May 2026 05:20:59 +0000 Subject: [PATCH 1/2] Add copyright and license annotation to files added by Antonin Bas The copyright holder of these files was determined by where Antonin worked on the date the file was added to this repository: + Until 2019-Aug Antonin worked for Barefoot Networks, Inc. + From 2019-Aug until 2023 Antonin worked for VMware, Inc. The copyright year is the year the file was added to this repository. The license for all files is Apache-2.0 Signed-off-by: Andy Fingerhut --- backends/graphs/README.md | 6 ++++++ .../resources/flowlet_switching-bmv2.ingress.png.license | 3 +++ testdata/p4_16_errors/issue1803_same_table_name.p4 | 6 ++++++ testdata/p4_16_samples/action_selector_unused-bmv2.p4 | 6 ++++++ testdata/p4_16_samples/constant-in-calculation-bmv2.stf | 4 ++++ testdata/p4_16_samples/psa-custom-type-counter-index.p4 | 6 ++++++ testdata/p4_16_samples/same_name_for_table_and_action.p4 | 6 ++++++ testdata/p4_16_samples/stack_complex-bmv2.stf | 4 ++++ testdata/p4_16_samples/table-entries-ser-enum-bmv2.stf | 4 ++++ testdata/p4_16_samples/v1model-digest-custom-type.p4 | 6 ++++++ 10 files changed, 51 insertions(+) create mode 100644 backends/graphs/resources/flowlet_switching-bmv2.ingress.png.license diff --git a/backends/graphs/README.md b/backends/graphs/README.md index 0bb45cc03fd..4bd7a0d9f8d 100644 --- a/backends/graphs/README.md +++ b/backends/graphs/README.md @@ -1,3 +1,9 @@ + + diff --git a/backends/graphs/resources/flowlet_switching-bmv2.ingress.png.license b/backends/graphs/resources/flowlet_switching-bmv2.ingress.png.license new file mode 100644 index 00000000000..7a67605a6e2 --- /dev/null +++ b/backends/graphs/resources/flowlet_switching-bmv2.ingress.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2017 Barefoot Networks, Inc. + +SPDX-License-Identifier: Apache-2.0 diff --git a/testdata/p4_16_errors/issue1803_same_table_name.p4 b/testdata/p4_16_errors/issue1803_same_table_name.p4 index cbfaaa13f4b..5976a9e13ea 100644 --- a/testdata/p4_16_errors/issue1803_same_table_name.p4 +++ b/testdata/p4_16_errors/issue1803_same_table_name.p4 @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2019 Barefoot Networks, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + #include #include diff --git a/testdata/p4_16_samples/action_selector_unused-bmv2.p4 b/testdata/p4_16_samples/action_selector_unused-bmv2.p4 index 54e9f2ec878..4888043e610 100644 --- a/testdata/p4_16_samples/action_selector_unused-bmv2.p4 +++ b/testdata/p4_16_samples/action_selector_unused-bmv2.p4 @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2017 Barefoot Networks, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + #include #include diff --git a/testdata/p4_16_samples/constant-in-calculation-bmv2.stf b/testdata/p4_16_samples/constant-in-calculation-bmv2.stf index e94c31526f9..73b4f2fb526 100644 --- a/testdata/p4_16_samples/constant-in-calculation-bmv2.stf +++ b/testdata/p4_16_samples/constant-in-calculation-bmv2.stf @@ -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 diff --git a/testdata/p4_16_samples/psa-custom-type-counter-index.p4 b/testdata/p4_16_samples/psa-custom-type-counter-index.p4 index 074451f8281..3a8731e084f 100644 --- a/testdata/p4_16_samples/psa-custom-type-counter-index.p4 +++ b/testdata/p4_16_samples/psa-custom-type-counter-index.p4 @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 VMware, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + #include #include diff --git a/testdata/p4_16_samples/same_name_for_table_and_action.p4 b/testdata/p4_16_samples/same_name_for_table_and_action.p4 index 06ec33cd56f..2a2ae98edbf 100644 --- a/testdata/p4_16_samples/same_name_for_table_and_action.p4 +++ b/testdata/p4_16_samples/same_name_for_table_and_action.p4 @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2019 Barefoot Networks, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + #include #include diff --git a/testdata/p4_16_samples/stack_complex-bmv2.stf b/testdata/p4_16_samples/stack_complex-bmv2.stf index 42a2b3a68a7..b8353a365e0 100644 --- a/testdata/p4_16_samples/stack_complex-bmv2.stf +++ b/testdata/p4_16_samples/stack_complex-bmv2.stf @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2017 Barefoot Networks, Inc. +# +# SPDX-License-Identifier: Apache-2.0 + packet 0 00000001 00000002 expect 4 00000001 00000002 diff --git a/testdata/p4_16_samples/table-entries-ser-enum-bmv2.stf b/testdata/p4_16_samples/table-entries-ser-enum-bmv2.stf index 741d0a2823b..eeb0e1fb288 100644 --- a/testdata/p4_16_samples/table-entries-ser-enum-bmv2.stf +++ b/testdata/p4_16_samples/table-entries-ser-enum-bmv2.stf @@ -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; } diff --git a/testdata/p4_16_samples/v1model-digest-custom-type.p4 b/testdata/p4_16_samples/v1model-digest-custom-type.p4 index d5fd16e7055..89d572d2452 100644 --- a/testdata/p4_16_samples/v1model-digest-custom-type.p4 +++ b/testdata/p4_16_samples/v1model-digest-custom-type.p4 @@ -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 #include From 74eadbb296921a686b1d56ad5709d4ba354052fb Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Wed, 20 May 2026 06:30:59 +0000 Subject: [PATCH 2/2] Update expected output files Signed-off-by: Andy Fingerhut --- .../issue1803_same_table_name.p4-stderr | 2 +- .../action_selector_unused-bmv2.p4-stderr | 6 +++--- .../same_name_for_table_and_action.p4-stderr | 2 +- .../v1model-digest-custom-type.p4-stderr | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/testdata/p4_16_errors_outputs/issue1803_same_table_name.p4-stderr b/testdata/p4_16_errors_outputs/issue1803_same_table_name.p4-stderr index 6f5236b1466..2d02634980e 100644 --- a/testdata/p4_16_errors_outputs/issue1803_same_table_name.p4-stderr +++ b/testdata/p4_16_errors_outputs/issue1803_same_table_name.p4-stderr @@ -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 diff --git a/testdata/p4_16_samples_outputs/action_selector_unused-bmv2.p4-stderr b/testdata/p4_16_samples_outputs/action_selector_unused-bmv2.p4-stderr index 52f3b1ea34a..50daa4a671e 100644 --- a/testdata/p4_16_samples_outputs/action_selector_unused-bmv2.p4-stderr +++ b/testdata/p4_16_samples_outputs/action_selector_unused-bmv2.p4-stderr @@ -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; ^^ diff --git a/testdata/p4_16_samples_outputs/same_name_for_table_and_action.p4-stderr b/testdata/p4_16_samples_outputs/same_name_for_table_and_action.p4-stderr index 48d56f95d8c..d609e9abb3b 100644 --- a/testdata/p4_16_samples_outputs/same_name_for_table_and_action.p4-stderr +++ b/testdata/p4_16_samples_outputs/same_name_for_table_and_action.p4-stderr @@ -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() { } ^^^^^ diff --git a/testdata/p4_16_samples_outputs/v1model-digest-custom-type.p4-stderr b/testdata/p4_16_samples_outputs/v1model-digest-custom-type.p4-stderr index e02d0dc660e..366d81f9b91 100644 --- a/testdata/p4_16_samples_outputs/v1model-digest-custom-type.p4-stderr +++ b/testdata/p4_16_samples_outputs/v1model-digest-custom-type.p4-stderr @@ -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; ^^^^^^^^^^^