From 0697385b1f5c37a0db3b915215ef65a6ae16d5d0 Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Sat, 1 Feb 2025 23:15:01 -0500 Subject: [PATCH 1/5] Add SPDX license id lines to source files Signed-off-by: Andy Fingerhut --- CLI/Makefile.am | 17 +++++++++++++++ CLI/act_profs/act_prof_common.c | 1 + CLI/act_profs/act_prof_common.h | 1 + CLI/act_profs/act_prof_create_member.c | 1 + CLI/act_profs/act_prof_dump.c | 1 + CLI/act_profs/act_prof_groups.c | 1 + CLI/add_p4.c | 1 + CLI/commands.h | 1 + CLI/counter_commands.c | 1 + CLI/device_commands.c | 1 + CLI/direct_res_reset.c | 1 + CLI/error_codes.c | 1 + CLI/error_codes.h | 1 + CLI/main.c | 1 + CLI/meter_commands.c | 1 + CLI/p4_config_repo.c | 1 + CLI/p4_config_repo.h | 1 + CLI/table_add.c | 1 + CLI/table_common.c | 1 + CLI/table_common.h | 1 + CLI/table_delete.c | 1 + CLI/table_dump.c | 1 + CLI/table_modify.c | 1 + CLI/table_reset_default.c | 1 + CLI/table_set_default.c | 1 + CLI/utils.c | 1 + CLI/utils.h | 1 + Dockerfile | 17 +++++++++++++++ Dockerfile.bmv2 | 17 +++++++++++++++ Makefile.am | 17 +++++++++++++++ autogen.sh | 17 +++++++++++++++ bin/Makefile.am | 17 +++++++++++++++ bin/gen_pi_json.c | 1 + bin/rpc_server.c | 1 + examples/Makefile.am | 17 +++++++++++++++ examples/example_1.c | 1 + examples/example_2.c | 1 + frontends_extra/Makefile.am | 17 +++++++++++++++ frontends_extra/cpp/Makefile.am | 17 +++++++++++++++ frontends_extra/cpp/PI/frontends/cpp/tables.h | 1 + frontends_extra/cpp/example/Makefile.am | 17 +++++++++++++++ frontends_extra/cpp/example/example.cpp | 1 + frontends_extra/cpp/src/tables.cpp | 1 + generators/Makefile.am | 17 +++++++++++++++ generators/fe_defines.c | 1 + include/Makefile.am | 17 +++++++++++++++ include/PI/frontends/generic/pi.h | 1 + include/PI/int/pi_int.h | 1 + include/PI/int/rpc_common.h | 1 + include/PI/int/serialize.h | 1 + include/PI/p4info.h | 1 + include/PI/p4info/act_profs.h | 1 + include/PI/p4info/actions.h | 1 + include/PI/p4info/counters.h | 1 + include/PI/p4info/digests.h | 1 + include/PI/p4info/meters.h | 1 + include/PI/p4info/tables.h | 1 + include/PI/pi.h | 1 + include/PI/pi_act_prof.h | 1 + include/PI/pi_base.h | 1 + include/PI/pi_clone.h | 1 + include/PI/pi_counter.h | 1 + include/PI/pi_learn.h | 1 + include/PI/pi_mc.h | 1 + include/PI/pi_meter.h | 1 + include/PI/pi_tables.h | 1 + include/PI/pi_value.h | 1 + include/PI/target/pi_act_prof_imp.h | 1 + include/PI/target/pi_clone_imp.h | 1 + include/PI/target/pi_counter_imp.h | 1 + include/PI/target/pi_imp.h | 1 + include/PI/target/pi_learn_imp.h | 1 + include/PI/target/pi_mc_imp.h | 1 + include/PI/target/pi_meter_imp.h | 1 + include/PI/target/pi_tables_imp.h | 1 + lib/Makefile.am | 17 +++++++++++++++ lib/_assert.c | 1 + lib/_assert.h | 1 + lib/read_file.c | 1 + lib/read_file.h | 1 + lib/vector.c | 1 + lib/vector.h | 1 + proto/Makefile.am | 17 +++++++++++++++ proto/PI/proto/util.h | 1 + proto/demo_grpc/1sw_demo.py | 1 + proto/demo_grpc/Makefile.am | 17 +++++++++++++++ proto/demo_grpc/app.cpp | 1 + proto/demo_grpc/p4_mininet.py | 1 + proto/demo_grpc/pi_server_main.cpp | 1 + proto/demo_grpc/simple_router.p4 | 1 + proto/demo_grpc/simple_router_mgr.cpp | 1 + proto/demo_grpc/simple_router_mgr.h | 1 + proto/demo_grpc/simple_router_wcounter.p4 | 1 + proto/demo_grpc/test_perf.cpp | 21 +++++++++++++++++++ proto/demo_grpc/web_server.cpp | 1 + proto/demo_grpc/web_server.h | 1 + proto/frontend/Makefile.am | 17 +++++++++++++++ .../frontend/PI/frontends/proto/device_mgr.h | 1 + proto/frontend/PI/frontends/proto/logging.h | 1 + proto/frontend/src/access_arbitration.cpp | 1 + proto/frontend/src/access_arbitration.h | 1 + proto/frontend/src/action_helpers.cpp | 1 + proto/frontend/src/action_helpers.h | 1 + proto/frontend/src/action_prof_mgr.cpp | 1 + proto/frontend/src/action_prof_mgr.h | 1 + proto/frontend/src/bimap.h | 1 + proto/frontend/src/common.cpp | 1 + proto/frontend/src/common.h | 1 + proto/frontend/src/device_mgr.cpp | 1 + proto/frontend/src/digest_mgr.cpp | 1 + proto/frontend/src/digest_mgr.h | 1 + proto/frontend/src/idle_timeout_buffer.cpp | 1 + proto/frontend/src/idle_timeout_buffer.h | 1 + proto/frontend/src/logger.h | 1 + proto/frontend/src/logging.cpp | 1 + proto/frontend/src/match_key_helpers.cpp | 1 + proto/frontend/src/match_key_helpers.h | 1 + proto/frontend/src/packet_io_mgr.cpp | 1 + proto/frontend/src/packet_io_mgr.h | 1 + proto/frontend/src/pre_clone_mgr.cpp | 1 + proto/frontend/src/pre_clone_mgr.h | 1 + proto/frontend/src/pre_mc_mgr.cpp | 1 + proto/frontend/src/pre_mc_mgr.h | 1 + proto/frontend/src/report_error.h | 1 + proto/frontend/src/statusor.h | 1 + proto/frontend/src/table_info_store.cpp | 1 + proto/frontend/src/table_info_store.h | 1 + proto/frontend/src/task_queue.h | 1 + proto/frontend/src/watch_port_enforcer.cpp | 1 + proto/frontend/src/watch_port_enforcer.h | 1 + proto/google/rpc/code.proto | 1 + proto/google/rpc/status.proto | 1 + proto/p4/server/v1/config.proto | 1 + proto/p4/tmp/p4config.proto | 1 + proto/p4info/Makefile.am | 17 +++++++++++++++ .../PI/proto/p4info_to_and_from_proto.h | 1 + proto/p4info/convert_p4info.cpp | 1 + proto/p4info/p4info_to_and_from_proto.cpp | 1 + proto/p4info/xform/examples/anno_xform1.p4 | 1 + proto/p4info/xform/examples/gen_p4info.sh | 3 ++- proto/p4info/xform/xform_anno.py | 1 + proto/ptf/base_test.py | 1 + proto/ptf/bmv2/gen_bmv2_config.py | 1 + proto/ptf/bmv2/gen_bmv2_config.sh | 17 +++++++++++++++ proto/ptf/bmv2/start_switch.sh | 18 ++++++++++++++++ proto/ptf/bmv2/veth_setup.sh | 18 ++++++++++++++++ proto/ptf/bmv2/veth_teardown.sh | 18 ++++++++++++++++ proto/ptf/l3_host_fwd/l3_host_fwd.p4 | 1 + proto/ptf/l3_host_fwd/test/l3_host_fwd.py | 1 + proto/ptf/ptf_runner.py | 1 + proto/server/Makefile.am | 17 +++++++++++++++ proto/server/PI/proto/pi_server.h | 1 + proto/server/gnmi.h | 1 + proto/server/gnmi_dummy.cpp | 1 + proto/server/gnmi_sysrepo.cpp | 1 + proto/server/log.h | 1 + proto/server/pi_server.cpp | 1 + proto/server/pi_server_testing.h | 1 + proto/server/shared_mutex.h | 1 + proto/server/uint128.cpp | 1 + proto/server/uint128.h | 1 + proto/server_config/server_config.cpp | 1 + proto/server_config/server_config.h | 1 + proto/src/util.cpp | 1 + proto/sysrepo/docker_entry_point.sh | 18 ++++++++++++++++ proto/tests/Makefile.am | 17 +++++++++++++++ proto/tests/main.cpp | 1 + proto/tests/matchers.cpp | 1 + proto/tests/matchers.h | 1 + proto/tests/mock_switch.cpp | 1 + proto/tests/mock_switch.h | 1 + proto/tests/server/test_arbitration.cpp | 1 + proto/tests/server/test_gnmi.cpp | 1 + .../tests/server/test_no_pipeline_config.cpp | 1 + proto/tests/server/test_pi_server.cpp | 1 + proto/tests/server/test_server_config.cpp | 1 + proto/tests/server/utils.cpp | 1 + proto/tests/server/utils.h | 1 + proto/tests/stream_receiver.h | 1 + proto/tests/test_p4info_convert.cpp | 1 + proto/tests/test_proto_fe.cpp | 1 + .../test_proto_fe_access_arbitration.cpp | 1 + proto/tests/test_proto_fe_base.cpp | 1 + proto/tests/test_proto_fe_base.h | 1 + proto/tests/test_proto_fe_bytestrings.cpp | 1 + proto/tests/test_proto_fe_digest.cpp | 1 + proto/tests/test_proto_fe_packet_io.cpp | 1 + .../test_proto_fe_set_pipeline_config.cpp | 1 + .../test_proto_fe_watch_port_enforcer.cpp | 1 + proto/tests/test_task_queue.cpp | 1 + src/Makefile.am | 17 +++++++++++++++ src/cb_mgr.c | 1 + src/cb_mgr.h | 1 + src/config_readers/bmv2_json_reader.c | 1 + src/config_readers/native_json_reader.c | 1 + src/config_readers/readers.h | 1 + src/device_map.c | 1 + src/device_map.h | 1 + src/frontends/generic/pi.c | 1 + src/p4info/act_profs.c | 1 + src/p4info/act_profs_int.h | 1 + src/p4info/actions.c | 1 + src/p4info/actions_int.h | 1 + src/p4info/counters.c | 1 + src/p4info/counters_int.h | 1 + src/p4info/digests.c | 1 + src/p4info/digests_int.h | 1 + src/p4info/fast_id_vector.c | 1 + src/p4info/fast_id_vector.h | 1 + src/p4info/meters.c | 1 + src/p4info/meters_int.h | 1 + src/p4info/p4info.c | 1 + src/p4info/p4info_common.c | 1 + src/p4info/p4info_common.h | 1 + src/p4info/p4info_name_map.c | 1 + src/p4info/p4info_name_map.h | 1 + src/p4info/p4info_struct.c | 1 + src/p4info/p4info_struct.h | 1 + src/p4info/tables.c | 1 + src/p4info/tables_int.h | 1 + src/p4info_int.h | 1 + src/pi.c | 1 + src/pi_act_prof.c | 1 + src/pi_clone.c | 1 + src/pi_counter.c | 1 + src/pi_learn.c | 1 + src/pi_learn_int.h | 1 + src/pi_mc.c | 1 + src/pi_meter.c | 1 + src/pi_notifications_pub.c | 1 + src/pi_notifications_pub.h | 1 + src/pi_rpc_server.c | 1 + src/pi_tables.c | 1 + src/pi_tables_int.h | 1 + src/pi_value.c | 1 + src/utils/logging.c | 1 + src/utils/logging.h | 1 + src/utils/serialize.c | 1 + src/utils/utils.h | 1 + targets/Makefile.am | 17 +++++++++++++++ targets/bmv2/Makefile.am | 17 +++++++++++++++ targets/bmv2/action_helpers.cpp | 1 + targets/bmv2/action_helpers.h | 1 + targets/bmv2/common.cpp | 1 + targets/bmv2/common.h | 1 + targets/bmv2/conn_mgr.cpp | 1 + targets/bmv2/conn_mgr.h | 1 + targets/bmv2/cpu_send_recv.cpp | 1 + targets/bmv2/cpu_send_recv.h | 1 + targets/bmv2/direct_res_spec.cpp | 1 + targets/bmv2/direct_res_spec.h | 1 + targets/bmv2/pi_act_prof_imp.cpp | 1 + targets/bmv2/pi_clone_imp.cpp | 1 + targets/bmv2/pi_counter_imp.cpp | 1 + targets/bmv2/pi_imp.cpp | 1 + targets/bmv2/pi_learn_imp.cpp | 1 + targets/bmv2/pi_mc_imp.cpp | 1 + targets/bmv2/pi_meter_imp.cpp | 1 + targets/bmv2/pi_tables_imp.cpp | 1 + targets/dummy/Makefile.am | 17 +++++++++++++++ targets/dummy/func_counter.c | 1 + targets/dummy/func_counter.h | 1 + targets/dummy/pi_act_prof_imp.c | 1 + targets/dummy/pi_clone_imp.c | 1 + targets/dummy/pi_counter_imp.c | 1 + targets/dummy/pi_imp.c | 1 + targets/dummy/pi_learn_imp.c | 1 + targets/dummy/pi_mc_imp.c | 1 + targets/dummy/pi_meter_imp.c | 1 + targets/dummy/pi_tables_imp.c | 1 + targets/rpc/Makefile.am | 17 +++++++++++++++ targets/rpc/notifications.c | 1 + targets/rpc/pi_act_prof_imp.c | 1 + targets/rpc/pi_clone_imp.c | 1 + targets/rpc/pi_counter_imp.c | 1 + targets/rpc/pi_imp.c | 1 + targets/rpc/pi_learn_imp.c | 1 + targets/rpc/pi_mc_imp.c | 1 + targets/rpc/pi_meter_imp.c | 1 + targets/rpc/pi_rpc.c | 1 + targets/rpc/pi_rpc.h | 1 + targets/rpc/pi_tables_imp.c | 1 + tests/CLI/Makefile.am | 17 +++++++++++++++ tests/CLI/testdata/swap_1.p4 | 1 + tests/CLI/testdata/swap_2.p4 | 1 + tests/Makefile.am | 17 +++++++++++++++ tests/frontends/generic/test.c | 1 + tests/main.c | 1 + tests/test_bmv2_json_reader.c | 1 + tests/test_getnetv.c | 1 + tests/test_p4info.c | 1 + tests/testdata/act_prof.p4 | 16 ++++++++++++++ tests/testdata/customids.p4 | 1 + tests/testdata/l2_switch.p4 | 1 + tests/testdata/pragmas.p4 | 15 +++++++++++++ tests/testdata/stats.p4 | 1 + tests/testdata/unittest.p4 | 1 + tests/testdata/valid.p4 | 15 +++++++++++++ tests/utils.c | 1 + tests/utils.h | 1 + tools/check_style.sh | 17 +++++++++++++++ tools/run_valgrind.sh | 17 +++++++++++++++ tools/update_test_bmv2_jsons.py | 17 +++++++++++++++ 303 files changed, 915 insertions(+), 1 deletion(-) diff --git a/CLI/Makefile.am b/CLI/Makefile.am index a46a7610..ee6f719f 100644 --- a/CLI/Makefile.am +++ b/CLI/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 lib_LTLIBRARIES = libpicli.la diff --git a/CLI/act_profs/act_prof_common.c b/CLI/act_profs/act_prof_common.c index 88ec3159..644bb307 100644 --- a/CLI/act_profs/act_prof_common.c +++ b/CLI/act_profs/act_prof_common.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/act_profs/act_prof_common.h b/CLI/act_profs/act_prof_common.h index 13ebe604..a2e42627 100644 --- a/CLI/act_profs/act_prof_common.h +++ b/CLI/act_profs/act_prof_common.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/act_profs/act_prof_create_member.c b/CLI/act_profs/act_prof_create_member.c index c72d32b3..69bb8d9c 100644 --- a/CLI/act_profs/act_prof_create_member.c +++ b/CLI/act_profs/act_prof_create_member.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/act_profs/act_prof_dump.c b/CLI/act_profs/act_prof_dump.c index 87084519..9f1c56f6 100644 --- a/CLI/act_profs/act_prof_dump.c +++ b/CLI/act_profs/act_prof_dump.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/act_profs/act_prof_groups.c b/CLI/act_profs/act_prof_groups.c index 9a275465..cef0232b 100644 --- a/CLI/act_profs/act_prof_groups.c +++ b/CLI/act_profs/act_prof_groups.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/add_p4.c b/CLI/add_p4.c index 5ad5e1e6..ec726a47 100644 --- a/CLI/add_p4.c +++ b/CLI/add_p4.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/commands.h b/CLI/commands.h index c9c6b531..f1432883 100644 --- a/CLI/commands.h +++ b/CLI/commands.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/counter_commands.c b/CLI/counter_commands.c index 9ba0188b..a3963c0d 100644 --- a/CLI/counter_commands.c +++ b/CLI/counter_commands.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/device_commands.c b/CLI/device_commands.c index b7bc0a2e..623d2d4e 100644 --- a/CLI/device_commands.c +++ b/CLI/device_commands.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/direct_res_reset.c b/CLI/direct_res_reset.c index 5b6ff025..05b2f0f5 100644 --- a/CLI/direct_res_reset.c +++ b/CLI/direct_res_reset.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/error_codes.c b/CLI/error_codes.c index 9d95203b..6d43cb52 100644 --- a/CLI/error_codes.c +++ b/CLI/error_codes.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/error_codes.h b/CLI/error_codes.h index 55bc396d..d9a6ecc6 100644 --- a/CLI/error_codes.h +++ b/CLI/error_codes.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/main.c b/CLI/main.c index a724098e..56bceccd 100644 --- a/CLI/main.c +++ b/CLI/main.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/meter_commands.c b/CLI/meter_commands.c index 5e79775f..13ac46c0 100644 --- a/CLI/meter_commands.c +++ b/CLI/meter_commands.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/p4_config_repo.c b/CLI/p4_config_repo.c index fb3f3c80..1f8531ae 100644 --- a/CLI/p4_config_repo.c +++ b/CLI/p4_config_repo.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/p4_config_repo.h b/CLI/p4_config_repo.h index 76e346c0..668a1fa1 100644 --- a/CLI/p4_config_repo.h +++ b/CLI/p4_config_repo.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/table_add.c b/CLI/table_add.c index 5b446402..fd99d4b6 100644 --- a/CLI/table_add.c +++ b/CLI/table_add.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/table_common.c b/CLI/table_common.c index 98949771..84a96852 100644 --- a/CLI/table_common.c +++ b/CLI/table_common.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/table_common.h b/CLI/table_common.h index f6db0302..07678930 100644 --- a/CLI/table_common.h +++ b/CLI/table_common.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/table_delete.c b/CLI/table_delete.c index ef44f656..849a6bd3 100644 --- a/CLI/table_delete.c +++ b/CLI/table_delete.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/table_dump.c b/CLI/table_dump.c index 078f55bd..55ab4adb 100644 --- a/CLI/table_dump.c +++ b/CLI/table_dump.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/table_modify.c b/CLI/table_modify.c index 8a34ec67..c2c51f2f 100644 --- a/CLI/table_modify.c +++ b/CLI/table_modify.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/table_reset_default.c b/CLI/table_reset_default.c index 22875a62..ae585a48 100644 --- a/CLI/table_reset_default.c +++ b/CLI/table_reset_default.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/table_set_default.c b/CLI/table_set_default.c index d9e6b02a..b39c40de 100644 --- a/CLI/table_set_default.c +++ b/CLI/table_set_default.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/utils.c b/CLI/utils.c index ae015bfc..53e82338 100644 --- a/CLI/utils.c +++ b/CLI/utils.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/CLI/utils.h b/CLI/utils.h index 1910c043..780e2ae7 100644 --- a/CLI/utils.h +++ b/CLI/utils.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Dockerfile b/Dockerfile index 74db3884..8caef82f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,20 @@ +# Copyright 2017 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + FROM p4lang/third-party:latest LABEL maintainer="P4 Developers " LABEL description="This Docker image includes only the most widely-used PI \ diff --git a/Dockerfile.bmv2 b/Dockerfile.bmv2 index c7c8a167..44a033e0 100644 --- a/Dockerfile.bmv2 +++ b/Dockerfile.bmv2 @@ -1,3 +1,20 @@ +# Copyright 2017 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + FROM p4lang/behavioral-model:no-pi LABEL maintainer="P4 Developers " LABEL description="This Docker image includes all of the PI artifacts, \ diff --git a/Makefile.am b/Makefile.am index 1ed70855..cae30dd9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + # DOXYGEN SUPPORT @DX_RULES@ diff --git a/autogen.sh b/autogen.sh index 70243a96..09f1622a 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,3 +1,20 @@ #!/bin/sh +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + exec autoreconf -fi diff --git a/bin/Makefile.am b/bin/Makefile.am index e55f044a..d6432645 100644 --- a/bin/Makefile.am +++ b/bin/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS += \ diff --git a/bin/gen_pi_json.c b/bin/gen_pi_json.c index ad42ace2..f02e5e4b 100644 --- a/bin/gen_pi_json.c +++ b/bin/gen_pi_json.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/bin/rpc_server.c b/bin/rpc_server.c index 7ac843b0..e75c6705 100644 --- a/bin/rpc_server.c +++ b/bin/rpc_server.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/Makefile.am b/examples/Makefile.am index 634a32d2..e2e605be 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS = \ diff --git a/examples/example_1.c b/examples/example_1.c index 543f22c7..83f572f0 100644 --- a/examples/example_1.c +++ b/examples/example_1.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/example_2.c b/examples/example_2.c index 35648174..e4db06bc 100644 --- a/examples/example_2.c +++ b/examples/example_2.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/frontends_extra/Makefile.am b/frontends_extra/Makefile.am index aaff245a..f7877139 100644 --- a/frontends_extra/Makefile.am +++ b/frontends_extra/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 if WITH_FE_CPP diff --git a/frontends_extra/cpp/Makefile.am b/frontends_extra/cpp/Makefile.am index b4ef9ed6..7b9186e4 100644 --- a/frontends_extra/cpp/Makefile.am +++ b/frontends_extra/cpp/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 SUBDIRS = . example diff --git a/frontends_extra/cpp/PI/frontends/cpp/tables.h b/frontends_extra/cpp/PI/frontends/cpp/tables.h index 77be9a2a..099b27ce 100644 --- a/frontends_extra/cpp/PI/frontends/cpp/tables.h +++ b/frontends_extra/cpp/PI/frontends/cpp/tables.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/frontends_extra/cpp/example/Makefile.am b/frontends_extra/cpp/example/Makefile.am index abb010e4..157e0ae1 100644 --- a/frontends_extra/cpp/example/Makefile.am +++ b/frontends_extra/cpp/example/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 check_PROGRAMS = example diff --git a/frontends_extra/cpp/example/example.cpp b/frontends_extra/cpp/example/example.cpp index 86786376..f8d1db19 100644 --- a/frontends_extra/cpp/example/example.cpp +++ b/frontends_extra/cpp/example/example.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/frontends_extra/cpp/src/tables.cpp b/frontends_extra/cpp/src/tables.cpp index 1bbb9362..57ddaf3b 100644 --- a/frontends_extra/cpp/src/tables.cpp +++ b/frontends_extra/cpp/src/tables.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/generators/Makefile.am b/generators/Makefile.am index cc027fd7..33cbef13 100644 --- a/generators/Makefile.am +++ b/generators/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS = \ diff --git a/generators/fe_defines.c b/generators/fe_defines.c index 6aae50c7..ac1c6b61 100644 --- a/generators/fe_defines.c +++ b/generators/fe_defines.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/Makefile.am b/include/Makefile.am index 63ff93dd..392810b5 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + # TODO(antonin): move act_prof to some "extern" directory nobase_include_HEADERS = \ diff --git a/include/PI/frontends/generic/pi.h b/include/PI/frontends/generic/pi.h index 9a32d0f7..00cd89e0 100644 --- a/include/PI/frontends/generic/pi.h +++ b/include/PI/frontends/generic/pi.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/int/pi_int.h b/include/PI/int/pi_int.h index 700991c4..538185b8 100644 --- a/include/PI/int/pi_int.h +++ b/include/PI/int/pi_int.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/int/rpc_common.h b/include/PI/int/rpc_common.h index eed9083a..659e7ba0 100644 --- a/include/PI/int/rpc_common.h +++ b/include/PI/int/rpc_common.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/int/serialize.h b/include/PI/int/serialize.h index 029f15e1..cac11cf9 100644 --- a/include/PI/int/serialize.h +++ b/include/PI/int/serialize.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/p4info.h b/include/PI/p4info.h index f2b28cb1..ef86f47a 100644 --- a/include/PI/p4info.h +++ b/include/PI/p4info.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/p4info/act_profs.h b/include/PI/p4info/act_profs.h index 87722953..90ea61bc 100644 --- a/include/PI/p4info/act_profs.h +++ b/include/PI/p4info/act_profs.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/p4info/actions.h b/include/PI/p4info/actions.h index bb0b8c64..072a98b4 100644 --- a/include/PI/p4info/actions.h +++ b/include/PI/p4info/actions.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/p4info/counters.h b/include/PI/p4info/counters.h index f49643db..72ce81f0 100644 --- a/include/PI/p4info/counters.h +++ b/include/PI/p4info/counters.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/p4info/digests.h b/include/PI/p4info/digests.h index 52f0548f..f3697207 100644 --- a/include/PI/p4info/digests.h +++ b/include/PI/p4info/digests.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/p4info/meters.h b/include/PI/p4info/meters.h index 73ddaa39..3b8d7122 100644 --- a/include/PI/p4info/meters.h +++ b/include/PI/p4info/meters.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/p4info/tables.h b/include/PI/p4info/tables.h index 06e4a7f8..19a32ed1 100644 --- a/include/PI/p4info/tables.h +++ b/include/PI/p4info/tables.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/pi.h b/include/PI/pi.h index 76fc6fe9..871494d7 100644 --- a/include/PI/pi.h +++ b/include/PI/pi.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/pi_act_prof.h b/include/PI/pi_act_prof.h index 662c06ca..9c08566c 100644 --- a/include/PI/pi_act_prof.h +++ b/include/PI/pi_act_prof.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/pi_base.h b/include/PI/pi_base.h index 72868cc3..ddfa78e2 100644 --- a/include/PI/pi_base.h +++ b/include/PI/pi_base.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/pi_clone.h b/include/PI/pi_clone.h index 0c37fa3e..4b6dd1eb 100644 --- a/include/PI/pi_clone.h +++ b/include/PI/pi_clone.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/pi_counter.h b/include/PI/pi_counter.h index 0b6395a3..aa838367 100644 --- a/include/PI/pi_counter.h +++ b/include/PI/pi_counter.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/pi_learn.h b/include/PI/pi_learn.h index 38878b81..3a4b3740 100644 --- a/include/PI/pi_learn.h +++ b/include/PI/pi_learn.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/pi_mc.h b/include/PI/pi_mc.h index f5cfc48a..ffc9d5d3 100644 --- a/include/PI/pi_mc.h +++ b/include/PI/pi_mc.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/pi_meter.h b/include/PI/pi_meter.h index df5b206c..2789e4d4 100644 --- a/include/PI/pi_meter.h +++ b/include/PI/pi_meter.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/pi_tables.h b/include/PI/pi_tables.h index 801864ec..c8e889e3 100644 --- a/include/PI/pi_tables.h +++ b/include/PI/pi_tables.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/pi_value.h b/include/PI/pi_value.h index 89931027..cf2b689f 100644 --- a/include/PI/pi_value.h +++ b/include/PI/pi_value.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/target/pi_act_prof_imp.h b/include/PI/target/pi_act_prof_imp.h index 59e27116..6da23514 100644 --- a/include/PI/target/pi_act_prof_imp.h +++ b/include/PI/target/pi_act_prof_imp.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/target/pi_clone_imp.h b/include/PI/target/pi_clone_imp.h index a0f15ed7..590c4ea9 100644 --- a/include/PI/target/pi_clone_imp.h +++ b/include/PI/target/pi_clone_imp.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/target/pi_counter_imp.h b/include/PI/target/pi_counter_imp.h index 05d72bb4..3ed61629 100644 --- a/include/PI/target/pi_counter_imp.h +++ b/include/PI/target/pi_counter_imp.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/target/pi_imp.h b/include/PI/target/pi_imp.h index 8b7b9eb8..7e44bbd1 100644 --- a/include/PI/target/pi_imp.h +++ b/include/PI/target/pi_imp.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/target/pi_learn_imp.h b/include/PI/target/pi_learn_imp.h index f35ab502..cbc9aec7 100644 --- a/include/PI/target/pi_learn_imp.h +++ b/include/PI/target/pi_learn_imp.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/target/pi_mc_imp.h b/include/PI/target/pi_mc_imp.h index d4c3c9dd..096426a7 100644 --- a/include/PI/target/pi_mc_imp.h +++ b/include/PI/target/pi_mc_imp.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/target/pi_meter_imp.h b/include/PI/target/pi_meter_imp.h index 513f6915..45aae515 100644 --- a/include/PI/target/pi_meter_imp.h +++ b/include/PI/target/pi_meter_imp.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/include/PI/target/pi_tables_imp.h b/include/PI/target/pi_tables_imp.h index 716587f3..55e2f619 100644 --- a/include/PI/target/pi_tables_imp.h +++ b/include/PI/target/pi_tables_imp.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/Makefile.am b/lib/Makefile.am index 6a396d74..459b6ac4 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 noinst_LTLIBRARIES = libpitoolkit.la diff --git a/lib/_assert.c b/lib/_assert.c index 47563bd1..7179e4f4 100644 --- a/lib/_assert.c +++ b/lib/_assert.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/_assert.h b/lib/_assert.h index 7ac75619..7571d4de 100644 --- a/lib/_assert.h +++ b/lib/_assert.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/read_file.c b/lib/read_file.c index 3869f4e8..fe8e4e97 100644 --- a/lib/read_file.c +++ b/lib/read_file.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/read_file.h b/lib/read_file.h index ac5f4723..1a058750 100644 --- a/lib/read_file.h +++ b/lib/read_file.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/vector.c b/lib/vector.c index af2dd7fa..082333ab 100644 --- a/lib/vector.c +++ b/lib/vector.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/vector.h b/lib/vector.h index a1036e2f..b871bbe6 100644 --- a/lib/vector.h +++ b/lib/vector.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/Makefile.am b/proto/Makefile.am index ed094c53..d4cc9354 100644 --- a/proto/Makefile.am +++ b/proto/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 # Remove -Werror diff --git a/proto/PI/proto/util.h b/proto/PI/proto/util.h index 39b240c1..567fc933 100644 --- a/proto/PI/proto/util.h +++ b/proto/PI/proto/util.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/demo_grpc/1sw_demo.py b/proto/demo_grpc/1sw_demo.py index f11aa199..ec1c27b4 100644 --- a/proto/demo_grpc/1sw_demo.py +++ b/proto/demo_grpc/1sw_demo.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # Copyright 2013-present Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/proto/demo_grpc/Makefile.am b/proto/demo_grpc/Makefile.am index e1430d3b..bc224f18 100644 --- a/proto/demo_grpc/Makefile.am +++ b/proto/demo_grpc/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS = \ diff --git a/proto/demo_grpc/app.cpp b/proto/demo_grpc/app.cpp index 77b7b490..539ce5b4 100644 --- a/proto/demo_grpc/app.cpp +++ b/proto/demo_grpc/app.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/demo_grpc/p4_mininet.py b/proto/demo_grpc/p4_mininet.py index 19817999..e3e2c3e1 100644 --- a/proto/demo_grpc/p4_mininet.py +++ b/proto/demo_grpc/p4_mininet.py @@ -1,4 +1,5 @@ # Copyright 2013-present Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/proto/demo_grpc/pi_server_main.cpp b/proto/demo_grpc/pi_server_main.cpp index 2efe1835..61e97288 100644 --- a/proto/demo_grpc/pi_server_main.cpp +++ b/proto/demo_grpc/pi_server_main.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/demo_grpc/simple_router.p4 b/proto/demo_grpc/simple_router.p4 index 5f4a995d..3efd5853 100644 --- a/proto/demo_grpc/simple_router.p4 +++ b/proto/demo_grpc/simple_router.p4 @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/demo_grpc/simple_router_mgr.cpp b/proto/demo_grpc/simple_router_mgr.cpp index 4e4636af..b1f95b9e 100644 --- a/proto/demo_grpc/simple_router_mgr.cpp +++ b/proto/demo_grpc/simple_router_mgr.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/demo_grpc/simple_router_mgr.h b/proto/demo_grpc/simple_router_mgr.h index a944290f..cc61f383 100644 --- a/proto/demo_grpc/simple_router_mgr.h +++ b/proto/demo_grpc/simple_router_mgr.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/demo_grpc/simple_router_wcounter.p4 b/proto/demo_grpc/simple_router_wcounter.p4 index 238fd9fb..34ac8381 100644 --- a/proto/demo_grpc/simple_router_wcounter.p4 +++ b/proto/demo_grpc/simple_router_wcounter.p4 @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/demo_grpc/test_perf.cpp b/proto/demo_grpc/test_perf.cpp index a10cac01..b0732967 100644 --- a/proto/demo_grpc/test_perf.cpp +++ b/proto/demo_grpc/test_perf.cpp @@ -1,3 +1,24 @@ +/* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + * Antonin Bas (antonin@barefootnetworks.com) + * + */ + #include #include diff --git a/proto/demo_grpc/web_server.cpp b/proto/demo_grpc/web_server.cpp index 5a867674..1d9403ff 100644 --- a/proto/demo_grpc/web_server.cpp +++ b/proto/demo_grpc/web_server.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/demo_grpc/web_server.h b/proto/demo_grpc/web_server.h index bf08279a..5e890464 100644 --- a/proto/demo_grpc/web_server.h +++ b/proto/demo_grpc/web_server.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/Makefile.am b/proto/frontend/Makefile.am index 29e1f677..7c9757b4 100644 --- a/proto/frontend/Makefile.am +++ b/proto/frontend/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 # for deprecated Protobuf fields diff --git a/proto/frontend/PI/frontends/proto/device_mgr.h b/proto/frontend/PI/frontends/proto/device_mgr.h index 2493933e..df3b89df 100644 --- a/proto/frontend/PI/frontends/proto/device_mgr.h +++ b/proto/frontend/PI/frontends/proto/device_mgr.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/PI/frontends/proto/logging.h b/proto/frontend/PI/frontends/proto/logging.h index 0b428aee..3589a458 100644 --- a/proto/frontend/PI/frontends/proto/logging.h +++ b/proto/frontend/PI/frontends/proto/logging.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/access_arbitration.cpp b/proto/frontend/src/access_arbitration.cpp index e05344b1..8232eec7 100644 --- a/proto/frontend/src/access_arbitration.cpp +++ b/proto/frontend/src/access_arbitration.cpp @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/access_arbitration.h b/proto/frontend/src/access_arbitration.h index d471696a..fd84f3ea 100644 --- a/proto/frontend/src/access_arbitration.h +++ b/proto/frontend/src/access_arbitration.h @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/action_helpers.cpp b/proto/frontend/src/action_helpers.cpp index 4bc54310..a50f7adb 100644 --- a/proto/frontend/src/action_helpers.cpp +++ b/proto/frontend/src/action_helpers.cpp @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/action_helpers.h b/proto/frontend/src/action_helpers.h index 0b352a23..16264bf5 100644 --- a/proto/frontend/src/action_helpers.h +++ b/proto/frontend/src/action_helpers.h @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/action_prof_mgr.cpp b/proto/frontend/src/action_prof_mgr.cpp index 41c982f8..d76870d6 100644 --- a/proto/frontend/src/action_prof_mgr.cpp +++ b/proto/frontend/src/action_prof_mgr.cpp @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/action_prof_mgr.h b/proto/frontend/src/action_prof_mgr.h index 1a2d04f9..b65e97ac 100644 --- a/proto/frontend/src/action_prof_mgr.h +++ b/proto/frontend/src/action_prof_mgr.h @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/bimap.h b/proto/frontend/src/bimap.h index 1be9b7e9..3d531bea 100644 --- a/proto/frontend/src/bimap.h +++ b/proto/frontend/src/bimap.h @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/common.cpp b/proto/frontend/src/common.cpp index 57651f3a..ef2b713e 100644 --- a/proto/frontend/src/common.cpp +++ b/proto/frontend/src/common.cpp @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/common.h b/proto/frontend/src/common.h index 28c75721..0ffe4e9d 100644 --- a/proto/frontend/src/common.h +++ b/proto/frontend/src/common.h @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/device_mgr.cpp b/proto/frontend/src/device_mgr.cpp index 08be301f..bad2f9a2 100644 --- a/proto/frontend/src/device_mgr.cpp +++ b/proto/frontend/src/device_mgr.cpp @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2020 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/digest_mgr.cpp b/proto/frontend/src/digest_mgr.cpp index 734fa951..95858a7e 100644 --- a/proto/frontend/src/digest_mgr.cpp +++ b/proto/frontend/src/digest_mgr.cpp @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/proto/frontend/src/digest_mgr.h b/proto/frontend/src/digest_mgr.h index dd783706..d6910352 100644 --- a/proto/frontend/src/digest_mgr.h +++ b/proto/frontend/src/digest_mgr.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/idle_timeout_buffer.cpp b/proto/frontend/src/idle_timeout_buffer.cpp index 4f33d25f..cbdb5a0f 100644 --- a/proto/frontend/src/idle_timeout_buffer.cpp +++ b/proto/frontend/src/idle_timeout_buffer.cpp @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/idle_timeout_buffer.h b/proto/frontend/src/idle_timeout_buffer.h index 14c1fbef..4d490a4b 100644 --- a/proto/frontend/src/idle_timeout_buffer.h +++ b/proto/frontend/src/idle_timeout_buffer.h @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/logger.h b/proto/frontend/src/logger.h index 3ba9f006..4d8e9ff8 100644 --- a/proto/frontend/src/logger.h +++ b/proto/frontend/src/logger.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/logging.cpp b/proto/frontend/src/logging.cpp index 1ff5c4a3..bc03574b 100644 --- a/proto/frontend/src/logging.cpp +++ b/proto/frontend/src/logging.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/match_key_helpers.cpp b/proto/frontend/src/match_key_helpers.cpp index 26259bca..082e8026 100644 --- a/proto/frontend/src/match_key_helpers.cpp +++ b/proto/frontend/src/match_key_helpers.cpp @@ -1,5 +1,6 @@ /* Copyright 2019-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/match_key_helpers.h b/proto/frontend/src/match_key_helpers.h index e0036f75..c38ba8bd 100644 --- a/proto/frontend/src/match_key_helpers.h +++ b/proto/frontend/src/match_key_helpers.h @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/packet_io_mgr.cpp b/proto/frontend/src/packet_io_mgr.cpp index b43889f5..4ccd11a4 100644 --- a/proto/frontend/src/packet_io_mgr.cpp +++ b/proto/frontend/src/packet_io_mgr.cpp @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/packet_io_mgr.h b/proto/frontend/src/packet_io_mgr.h index 438ebec4..d8fe2e1b 100644 --- a/proto/frontend/src/packet_io_mgr.h +++ b/proto/frontend/src/packet_io_mgr.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/pre_clone_mgr.cpp b/proto/frontend/src/pre_clone_mgr.cpp index 0eb01a0c..a12f839d 100644 --- a/proto/frontend/src/pre_clone_mgr.cpp +++ b/proto/frontend/src/pre_clone_mgr.cpp @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/pre_clone_mgr.h b/proto/frontend/src/pre_clone_mgr.h index 29f64a32..c613917f 100644 --- a/proto/frontend/src/pre_clone_mgr.h +++ b/proto/frontend/src/pre_clone_mgr.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/pre_mc_mgr.cpp b/proto/frontend/src/pre_mc_mgr.cpp index 50124dcd..6db9f4d9 100644 --- a/proto/frontend/src/pre_mc_mgr.cpp +++ b/proto/frontend/src/pre_mc_mgr.cpp @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/pre_mc_mgr.h b/proto/frontend/src/pre_mc_mgr.h index 3cdc57e7..4a967924 100644 --- a/proto/frontend/src/pre_mc_mgr.h +++ b/proto/frontend/src/pre_mc_mgr.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/report_error.h b/proto/frontend/src/report_error.h index 9670f4e7..da6cb004 100644 --- a/proto/frontend/src/report_error.h +++ b/proto/frontend/src/report_error.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/statusor.h b/proto/frontend/src/statusor.h index f7bd4e52..f27156e2 100644 --- a/proto/frontend/src/statusor.h +++ b/proto/frontend/src/statusor.h @@ -1,4 +1,5 @@ // Copyright 2013 Google Inc. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/table_info_store.cpp b/proto/frontend/src/table_info_store.cpp index b7e115ff..56fdfe12 100644 --- a/proto/frontend/src/table_info_store.cpp +++ b/proto/frontend/src/table_info_store.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/table_info_store.h b/proto/frontend/src/table_info_store.h index fbedbe4f..50db7377 100644 --- a/proto/frontend/src/table_info_store.h +++ b/proto/frontend/src/table_info_store.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/task_queue.h b/proto/frontend/src/task_queue.h index 039059f2..008a05ed 100644 --- a/proto/frontend/src/task_queue.h +++ b/proto/frontend/src/task_queue.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/watch_port_enforcer.cpp b/proto/frontend/src/watch_port_enforcer.cpp index f0161792..b06ead50 100644 --- a/proto/frontend/src/watch_port_enforcer.cpp +++ b/proto/frontend/src/watch_port_enforcer.cpp @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/frontend/src/watch_port_enforcer.h b/proto/frontend/src/watch_port_enforcer.h index c2ab1420..48efb30c 100644 --- a/proto/frontend/src/watch_port_enforcer.h +++ b/proto/frontend/src/watch_port_enforcer.h @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/google/rpc/code.proto b/proto/google/rpc/code.proto index f9ceddcb..55322608 100644 --- a/proto/google/rpc/code.proto +++ b/proto/google/rpc/code.proto @@ -1,4 +1,5 @@ // Copyright (c) 2015, Google Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/google/rpc/status.proto b/proto/google/rpc/status.proto index 8fca6ab2..58d472df 100644 --- a/proto/google/rpc/status.proto +++ b/proto/google/rpc/status.proto @@ -1,4 +1,5 @@ // Copyright (c) 2015, Google Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/p4/server/v1/config.proto b/proto/p4/server/v1/config.proto index 42d5bb30..dd025d50 100644 --- a/proto/p4/server/v1/config.proto +++ b/proto/p4/server/v1/config.proto @@ -1,4 +1,5 @@ // Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/p4/tmp/p4config.proto b/proto/p4/tmp/p4config.proto index 342de2e3..f3eb616a 100644 --- a/proto/p4/tmp/p4config.proto +++ b/proto/p4/tmp/p4config.proto @@ -1,4 +1,5 @@ // Copyright 2013-present Barefoot Networks, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/p4info/Makefile.am b/proto/p4info/Makefile.am index 84f0a307..4acff3bf 100644 --- a/proto/p4info/Makefile.am +++ b/proto/p4info/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS = \ diff --git a/proto/p4info/PI/proto/p4info_to_and_from_proto.h b/proto/p4info/PI/proto/p4info_to_and_from_proto.h index c54868be..4dd1abf1 100644 --- a/proto/p4info/PI/proto/p4info_to_and_from_proto.h +++ b/proto/p4info/PI/proto/p4info_to_and_from_proto.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/p4info/convert_p4info.cpp b/proto/p4info/convert_p4info.cpp index 652ec666..7289724e 100644 --- a/proto/p4info/convert_p4info.cpp +++ b/proto/p4info/convert_p4info.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/p4info/p4info_to_and_from_proto.cpp b/proto/p4info/p4info_to_and_from_proto.cpp index 2cc38e77..9adbc337 100644 --- a/proto/p4info/p4info_to_and_from_proto.cpp +++ b/proto/p4info/p4info_to_and_from_proto.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/p4info/xform/examples/anno_xform1.p4 b/proto/p4info/xform/examples/anno_xform1.p4 index 59a9a8fc..cb165d1b 100644 --- a/proto/p4info/xform/examples/anno_xform1.p4 +++ b/proto/p4info/xform/examples/anno_xform1.p4 @@ -7,6 +7,7 @@ // // Copyright 2018-present Keysight Technologies, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/p4info/xform/examples/gen_p4info.sh b/proto/p4info/xform/examples/gen_p4info.sh index 58ca3416..8706b305 100755 --- a/proto/p4info/xform/examples/gen_p4info.sh +++ b/proto/p4info/xform/examples/gen_p4info.sh @@ -4,6 +4,7 @@ # # Copyright 2018-present Keysight Technologies, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -34,4 +35,4 @@ echo "p4c-bm2-ss --p4runtime-file $1.p4info.json --p4runtime-format json $1" p4c-bm2-ss --p4runtime-file $1.p4info.json --p4runtime-format json $1 echo "Generating $1.p4info.txt ..." echo "p4c-bm2-ss --p4runtime-file $1.p4info.txt --p4runtime-format text $1" -p4c-bm2-ss --p4runtime-file $1.p4info.txt --p4runtime-format text $1 \ No newline at end of file +p4c-bm2-ss --p4runtime-file $1.p4info.txt --p4runtime-format text $1 diff --git a/proto/p4info/xform/xform_anno.py b/proto/p4info/xform/xform_anno.py index 5035da59..7fbdabf6 100755 --- a/proto/p4info/xform/xform_anno.py +++ b/proto/p4info/xform/xform_anno.py @@ -4,6 +4,7 @@ # # Copyright 2018-present Keysight Technologies, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/proto/ptf/base_test.py b/proto/ptf/base_test.py index 50c032bd..32023a89 100644 --- a/proto/ptf/base_test.py +++ b/proto/ptf/base_test.py @@ -1,4 +1,5 @@ # Copyright 2013-present Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/proto/ptf/bmv2/gen_bmv2_config.py b/proto/ptf/bmv2/gen_bmv2_config.py index 5e913f89..cfb4cb86 100755 --- a/proto/ptf/bmv2/gen_bmv2_config.py +++ b/proto/ptf/bmv2/gen_bmv2_config.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # Copyright 2013-present Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/proto/ptf/bmv2/gen_bmv2_config.sh b/proto/ptf/bmv2/gen_bmv2_config.sh index bb852b61..d11a62fc 100755 --- a/proto/ptf/bmv2/gen_bmv2_config.sh +++ b/proto/ptf/bmv2/gen_bmv2_config.sh @@ -1,5 +1,22 @@ #!/usr/bin/env bash +# Copyright 2017 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + if [ $# -ne 2 ]; then echo "Expects exactly 2 arguments" echo "Usage: $0 " diff --git a/proto/ptf/bmv2/start_switch.sh b/proto/ptf/bmv2/start_switch.sh index b7cce9cd..3bf10243 100755 --- a/proto/ptf/bmv2/start_switch.sh +++ b/proto/ptf/bmv2/start_switch.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash + +# Copyright 2017 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + if [[ $EUID -ne 0 ]]; then echo "This script should be run using sudo or as the root user" exit 1 diff --git a/proto/ptf/bmv2/veth_setup.sh b/proto/ptf/bmv2/veth_setup.sh index 65ee01e2..5abf9ac6 100755 --- a/proto/ptf/bmv2/veth_setup.sh +++ b/proto/ptf/bmv2/veth_setup.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash + +# Copyright 2017 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + noOfVeths=8 if [ $# -eq 1 ]; then noOfVeths=$1 diff --git a/proto/ptf/bmv2/veth_teardown.sh b/proto/ptf/bmv2/veth_teardown.sh index 4aec9bd5..1cb0a1ec 100755 --- a/proto/ptf/bmv2/veth_teardown.sh +++ b/proto/ptf/bmv2/veth_teardown.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash + +# Copyright 2017 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + noOfVeths=8 if [ $# -eq 1 ]; then noOfVeths=$1 diff --git a/proto/ptf/l3_host_fwd/l3_host_fwd.p4 b/proto/ptf/l3_host_fwd/l3_host_fwd.p4 index 6c67c626..2b386252 100644 --- a/proto/ptf/l3_host_fwd/l3_host_fwd.p4 +++ b/proto/ptf/l3_host_fwd/l3_host_fwd.p4 @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/ptf/l3_host_fwd/test/l3_host_fwd.py b/proto/ptf/l3_host_fwd/test/l3_host_fwd.py index 0f4d6050..a957043b 100644 --- a/proto/ptf/l3_host_fwd/test/l3_host_fwd.py +++ b/proto/ptf/l3_host_fwd/test/l3_host_fwd.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # Copyright 2013-present Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/proto/ptf/ptf_runner.py b/proto/ptf/ptf_runner.py index 9a51a4cd..950629b7 100755 --- a/proto/ptf/ptf_runner.py +++ b/proto/ptf/ptf_runner.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # Copyright 2013-present Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/proto/server/Makefile.am b/proto/server/Makefile.am index 0ec04457..b916026b 100644 --- a/proto/server/Makefile.am +++ b/proto/server/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2017 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS = \ diff --git a/proto/server/PI/proto/pi_server.h b/proto/server/PI/proto/pi_server.h index 2749ca22..115e4f18 100644 --- a/proto/server/PI/proto/pi_server.h +++ b/proto/server/PI/proto/pi_server.h @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2022 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/server/gnmi.h b/proto/server/gnmi.h index c802e9fa..3a51d9a4 100644 --- a/proto/server/gnmi.h +++ b/proto/server/gnmi.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/server/gnmi_dummy.cpp b/proto/server/gnmi_dummy.cpp index 35ae3a5d..db0d79c9 100644 --- a/proto/server/gnmi_dummy.cpp +++ b/proto/server/gnmi_dummy.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/server/gnmi_sysrepo.cpp b/proto/server/gnmi_sysrepo.cpp index c2380bdd..9fd3f5b2 100644 --- a/proto/server/gnmi_sysrepo.cpp +++ b/proto/server/gnmi_sysrepo.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/server/log.h b/proto/server/log.h index 475d9ed0..476f247b 100644 --- a/proto/server/log.h +++ b/proto/server/log.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/server/pi_server.cpp b/proto/server/pi_server.cpp index 94fa3e95..428ba1e0 100644 --- a/proto/server/pi_server.cpp +++ b/proto/server/pi_server.cpp @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2022 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/server/pi_server_testing.h b/proto/server/pi_server_testing.h index 59d8655f..ffcab7e1 100644 --- a/proto/server/pi_server_testing.h +++ b/proto/server/pi_server_testing.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/server/shared_mutex.h b/proto/server/shared_mutex.h index 253294fc..b836e294 100644 --- a/proto/server/shared_mutex.h +++ b/proto/server/shared_mutex.h @@ -1,4 +1,5 @@ /* Copyright 2020 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/server/uint128.cpp b/proto/server/uint128.cpp index 38fece29..2d932ac1 100644 --- a/proto/server/uint128.cpp +++ b/proto/server/uint128.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/server/uint128.h b/proto/server/uint128.h index 90d480c0..a701fe42 100644 --- a/proto/server/uint128.h +++ b/proto/server/uint128.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/server_config/server_config.cpp b/proto/server_config/server_config.cpp index baa2eedf..c78ebccc 100644 --- a/proto/server_config/server_config.cpp +++ b/proto/server_config/server_config.cpp @@ -1,4 +1,5 @@ // Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/server_config/server_config.h b/proto/server_config/server_config.h index bae1f978..37e80801 100644 --- a/proto/server_config/server_config.h +++ b/proto/server_config/server_config.h @@ -1,4 +1,5 @@ // Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/src/util.cpp b/proto/src/util.cpp index 6b23b6fc..3f15474c 100644 --- a/proto/src/util.cpp +++ b/proto/src/util.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/sysrepo/docker_entry_point.sh b/proto/sysrepo/docker_entry_point.sh index fcbcf451..137f628b 100755 --- a/proto/sysrepo/docker_entry_point.sh +++ b/proto/sysrepo/docker_entry_point.sh @@ -1,4 +1,22 @@ #!/bin/sh + +# Copyright 2017 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + sysrepod # execute docker command exec "$@" diff --git a/proto/tests/Makefile.am b/proto/tests/Makefile.am index 6037739f..0affb75d 100644 --- a/proto/tests/Makefile.am +++ b/proto/tests/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 # for deprecated Protobuf fields diff --git a/proto/tests/main.cpp b/proto/tests/main.cpp index 35c18253..15fec39e 100644 --- a/proto/tests/main.cpp +++ b/proto/tests/main.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/matchers.cpp b/proto/tests/matchers.cpp index 2d1392e5..e2a7b665 100644 --- a/proto/tests/matchers.cpp +++ b/proto/tests/matchers.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/matchers.h b/proto/tests/matchers.h index c1a3cc4e..53406713 100644 --- a/proto/tests/matchers.h +++ b/proto/tests/matchers.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/mock_switch.cpp b/proto/tests/mock_switch.cpp index 5dda14b7..8205aa14 100644 --- a/proto/tests/mock_switch.cpp +++ b/proto/tests/mock_switch.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/mock_switch.h b/proto/tests/mock_switch.h index a2de93ce..d7a57964 100644 --- a/proto/tests/mock_switch.h +++ b/proto/tests/mock_switch.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/server/test_arbitration.cpp b/proto/tests/server/test_arbitration.cpp index b1989022..fb6083f4 100644 --- a/proto/tests/server/test_arbitration.cpp +++ b/proto/tests/server/test_arbitration.cpp @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/server/test_gnmi.cpp b/proto/tests/server/test_gnmi.cpp index bc5bde2b..9d371f3d 100644 --- a/proto/tests/server/test_gnmi.cpp +++ b/proto/tests/server/test_gnmi.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/server/test_no_pipeline_config.cpp b/proto/tests/server/test_no_pipeline_config.cpp index 13d7987d..fb3f2aa1 100644 --- a/proto/tests/server/test_no_pipeline_config.cpp +++ b/proto/tests/server/test_no_pipeline_config.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/server/test_pi_server.cpp b/proto/tests/server/test_pi_server.cpp index d486b242..27c4c1a2 100644 --- a/proto/tests/server/test_pi_server.cpp +++ b/proto/tests/server/test_pi_server.cpp @@ -1,4 +1,5 @@ // Copyright (c) 2017, Google Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/tests/server/test_server_config.cpp b/proto/tests/server/test_server_config.cpp index 37066419..8db7ad27 100644 --- a/proto/tests/server/test_server_config.cpp +++ b/proto/tests/server/test_server_config.cpp @@ -1,4 +1,5 @@ // Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/tests/server/utils.cpp b/proto/tests/server/utils.cpp index cf0c3367..7374e4ad 100644 --- a/proto/tests/server/utils.cpp +++ b/proto/tests/server/utils.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/server/utils.h b/proto/tests/server/utils.h index 3bc00ac7..528a36ab 100644 --- a/proto/tests/server/utils.h +++ b/proto/tests/server/utils.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/stream_receiver.h b/proto/tests/stream_receiver.h index b819e6b8..86518138 100644 --- a/proto/tests/stream_receiver.h +++ b/proto/tests/stream_receiver.h @@ -1,4 +1,5 @@ // Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto/tests/test_p4info_convert.cpp b/proto/tests/test_p4info_convert.cpp index a4e56a54..04812cc1 100644 --- a/proto/tests/test_p4info_convert.cpp +++ b/proto/tests/test_p4info_convert.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/test_proto_fe.cpp b/proto/tests/test_proto_fe.cpp index b91c0c70..9792aa00 100644 --- a/proto/tests/test_proto_fe.cpp +++ b/proto/tests/test_proto_fe.cpp @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2020 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/test_proto_fe_access_arbitration.cpp b/proto/tests/test_proto_fe_access_arbitration.cpp index 7333ee44..07b95d76 100644 --- a/proto/tests/test_proto_fe_access_arbitration.cpp +++ b/proto/tests/test_proto_fe_access_arbitration.cpp @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/test_proto_fe_base.cpp b/proto/tests/test_proto_fe_base.cpp index c6cd3977..8dd3fe94 100644 --- a/proto/tests/test_proto_fe_base.cpp +++ b/proto/tests/test_proto_fe_base.cpp @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/test_proto_fe_base.h b/proto/tests/test_proto_fe_base.h index bf8982e1..4b8e1fae 100644 --- a/proto/tests/test_proto_fe_base.h +++ b/proto/tests/test_proto_fe_base.h @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/test_proto_fe_bytestrings.cpp b/proto/tests/test_proto_fe_bytestrings.cpp index 98697462..fe0b0d34 100644 --- a/proto/tests/test_proto_fe_bytestrings.cpp +++ b/proto/tests/test_proto_fe_bytestrings.cpp @@ -1,4 +1,5 @@ /* Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/test_proto_fe_digest.cpp b/proto/tests/test_proto_fe_digest.cpp index 725a5283..d317d0b2 100644 --- a/proto/tests/test_proto_fe_digest.cpp +++ b/proto/tests/test_proto_fe_digest.cpp @@ -1,5 +1,6 @@ /* Copyright 2018-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/test_proto_fe_packet_io.cpp b/proto/tests/test_proto_fe_packet_io.cpp index ac3e6b23..914ef939 100644 --- a/proto/tests/test_proto_fe_packet_io.cpp +++ b/proto/tests/test_proto_fe_packet_io.cpp @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/test_proto_fe_set_pipeline_config.cpp b/proto/tests/test_proto_fe_set_pipeline_config.cpp index 2c1adf0b..f295a309 100644 --- a/proto/tests/test_proto_fe_set_pipeline_config.cpp +++ b/proto/tests/test_proto_fe_set_pipeline_config.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/test_proto_fe_watch_port_enforcer.cpp b/proto/tests/test_proto_fe_watch_port_enforcer.cpp index 042048e4..618cf962 100644 --- a/proto/tests/test_proto_fe_watch_port_enforcer.cpp +++ b/proto/tests/test_proto_fe_watch_port_enforcer.cpp @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto/tests/test_task_queue.cpp b/proto/tests/test_task_queue.cpp index e845a001..cea729ab 100644 --- a/proto/tests/test_task_queue.cpp +++ b/proto/tests/test_task_queue.cpp @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/Makefile.am b/src/Makefile.am index a61b2b2b..51875660 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + AM_CPPFLAGS += \ -I$(top_srcdir)/include \ -I$(top_srcdir)/lib \ diff --git a/src/cb_mgr.c b/src/cb_mgr.c index 3f94f7fd..444cb3a6 100644 --- a/src/cb_mgr.c +++ b/src/cb_mgr.c @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/cb_mgr.h b/src/cb_mgr.h index 5cb2ebcc..5bfc133e 100644 --- a/src/cb_mgr.h +++ b/src/cb_mgr.h @@ -1,4 +1,5 @@ /* Copyright 2019-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/config_readers/bmv2_json_reader.c b/src/config_readers/bmv2_json_reader.c index 21364951..a3b9e6cd 100644 --- a/src/config_readers/bmv2_json_reader.c +++ b/src/config_readers/bmv2_json_reader.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/config_readers/native_json_reader.c b/src/config_readers/native_json_reader.c index cfa5abcd..3785eddf 100644 --- a/src/config_readers/native_json_reader.c +++ b/src/config_readers/native_json_reader.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/config_readers/readers.h b/src/config_readers/readers.h index 6e21849a..02a9d393 100644 --- a/src/config_readers/readers.h +++ b/src/config_readers/readers.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/device_map.c b/src/device_map.c index 633e19ef..9c718a97 100644 --- a/src/device_map.c +++ b/src/device_map.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/device_map.h b/src/device_map.h index 42cd3d77..b0b0d24f 100644 --- a/src/device_map.h +++ b/src/device_map.h @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/frontends/generic/pi.c b/src/frontends/generic/pi.c index 08b6de20..0edb148c 100644 --- a/src/frontends/generic/pi.c +++ b/src/frontends/generic/pi.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/act_profs.c b/src/p4info/act_profs.c index 6222d8a8..1e353ead 100644 --- a/src/p4info/act_profs.c +++ b/src/p4info/act_profs.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/act_profs_int.h b/src/p4info/act_profs_int.h index 7b4104d0..ff391d04 100644 --- a/src/p4info/act_profs_int.h +++ b/src/p4info/act_profs_int.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/actions.c b/src/p4info/actions.c index 2e9d9c4e..7a0afa3b 100644 --- a/src/p4info/actions.c +++ b/src/p4info/actions.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/actions_int.h b/src/p4info/actions_int.h index 9b3c8bf5..8cfc22fa 100644 --- a/src/p4info/actions_int.h +++ b/src/p4info/actions_int.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/counters.c b/src/p4info/counters.c index 61d394ed..406e6a9b 100644 --- a/src/p4info/counters.c +++ b/src/p4info/counters.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/counters_int.h b/src/p4info/counters_int.h index d4adad47..1e4752a9 100644 --- a/src/p4info/counters_int.h +++ b/src/p4info/counters_int.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/digests.c b/src/p4info/digests.c index 16eccb1a..79571608 100644 --- a/src/p4info/digests.c +++ b/src/p4info/digests.c @@ -1,5 +1,6 @@ /* Copyright 2018-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/digests_int.h b/src/p4info/digests_int.h index 9066607c..7ca7ba78 100644 --- a/src/p4info/digests_int.h +++ b/src/p4info/digests_int.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/fast_id_vector.c b/src/p4info/fast_id_vector.c index 48c2847b..1a2f3221 100644 --- a/src/p4info/fast_id_vector.c +++ b/src/p4info/fast_id_vector.c @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/fast_id_vector.h b/src/p4info/fast_id_vector.h index e1ef6aa2..37f1b67d 100644 --- a/src/p4info/fast_id_vector.h +++ b/src/p4info/fast_id_vector.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/meters.c b/src/p4info/meters.c index 34d7b296..461133a9 100644 --- a/src/p4info/meters.c +++ b/src/p4info/meters.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/meters_int.h b/src/p4info/meters_int.h index 706bed6a..38978ffb 100644 --- a/src/p4info/meters_int.h +++ b/src/p4info/meters_int.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/p4info.c b/src/p4info/p4info.c index 4b5fe346..dede4c55 100644 --- a/src/p4info/p4info.c +++ b/src/p4info/p4info.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/p4info_common.c b/src/p4info/p4info_common.c index e7caaefb..35bc1090 100644 --- a/src/p4info/p4info_common.c +++ b/src/p4info/p4info_common.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/p4info_common.h b/src/p4info/p4info_common.h index 9e1f45a8..69c660c2 100644 --- a/src/p4info/p4info_common.h +++ b/src/p4info/p4info_common.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/p4info_name_map.c b/src/p4info/p4info_name_map.c index 9b61e36a..ed4cbc39 100644 --- a/src/p4info/p4info_name_map.c +++ b/src/p4info/p4info_name_map.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/p4info_name_map.h b/src/p4info/p4info_name_map.h index 7448d01f..4b61a601 100644 --- a/src/p4info/p4info_name_map.h +++ b/src/p4info/p4info_name_map.h @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/p4info_struct.c b/src/p4info/p4info_struct.c index 3e51acaf..cfd8b875 100644 --- a/src/p4info/p4info_struct.c +++ b/src/p4info/p4info_struct.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/p4info_struct.h b/src/p4info/p4info_struct.h index 7fed9e1f..bbc27c7a 100644 --- a/src/p4info/p4info_struct.h +++ b/src/p4info/p4info_struct.h @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/tables.c b/src/p4info/tables.c index 768c1618..17655eca 100644 --- a/src/p4info/tables.c +++ b/src/p4info/tables.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info/tables_int.h b/src/p4info/tables_int.h index dfe6522a..69871f9f 100644 --- a/src/p4info/tables_int.h +++ b/src/p4info/tables_int.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/p4info_int.h b/src/p4info_int.h index 9a1d7b75..43041815 100644 --- a/src/p4info_int.h +++ b/src/p4info_int.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi.c b/src/pi.c index bfc6ae36..10184372 100644 --- a/src/pi.c +++ b/src/pi.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_act_prof.c b/src/pi_act_prof.c index 71e580a6..aac9e4f8 100644 --- a/src/pi_act_prof.c +++ b/src/pi_act_prof.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_clone.c b/src/pi_clone.c index 8e9a761a..3beafc58 100644 --- a/src/pi_clone.c +++ b/src/pi_clone.c @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_counter.c b/src/pi_counter.c index 8e9ecc3b..9b9b1ac2 100644 --- a/src/pi_counter.c +++ b/src/pi_counter.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_learn.c b/src/pi_learn.c index 01ff7616..bae5152d 100644 --- a/src/pi_learn.c +++ b/src/pi_learn.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_learn_int.h b/src/pi_learn_int.h index d853fff3..f6aee3c3 100644 --- a/src/pi_learn_int.h +++ b/src/pi_learn_int.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_mc.c b/src/pi_mc.c index 3d7a788b..d091ff96 100644 --- a/src/pi_mc.c +++ b/src/pi_mc.c @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_meter.c b/src/pi_meter.c index af669f7f..339a5ea0 100644 --- a/src/pi_meter.c +++ b/src/pi_meter.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_notifications_pub.c b/src/pi_notifications_pub.c index cd1203be..980b83a8 100644 --- a/src/pi_notifications_pub.c +++ b/src/pi_notifications_pub.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_notifications_pub.h b/src/pi_notifications_pub.h index b3226fa1..f4214fef 100644 --- a/src/pi_notifications_pub.h +++ b/src/pi_notifications_pub.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_rpc_server.c b/src/pi_rpc_server.c index 065592bf..eb89a0e3 100644 --- a/src/pi_rpc_server.c +++ b/src/pi_rpc_server.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_tables.c b/src/pi_tables.c index d167f419..10980f40 100644 --- a/src/pi_tables.c +++ b/src/pi_tables.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_tables_int.h b/src/pi_tables_int.h index 20d6fff5..275e2f8b 100644 --- a/src/pi_tables_int.h +++ b/src/pi_tables_int.h @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/pi_value.c b/src/pi_value.c index a715d3e7..6b2276c7 100644 --- a/src/pi_value.c +++ b/src/pi_value.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/utils/logging.c b/src/utils/logging.c index 9182bfce..08e4a835 100644 --- a/src/utils/logging.c +++ b/src/utils/logging.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/utils/logging.h b/src/utils/logging.h index 52a954e2..87d16300 100644 --- a/src/utils/logging.h +++ b/src/utils/logging.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/utils/serialize.c b/src/utils/serialize.c index 05cd87c9..0b0c4c2b 100644 --- a/src/utils/serialize.c +++ b/src/utils/serialize.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/utils/utils.h b/src/utils/utils.h index 9a71785d..0bdc3f44 100644 --- a/src/utils/utils.h +++ b/src/utils/utils.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/Makefile.am b/targets/Makefile.am index 1b5e81bd..18fe6354 100644 --- a/targets/Makefile.am +++ b/targets/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 if WITH_BMV2 diff --git a/targets/bmv2/Makefile.am b/targets/bmv2/Makefile.am index 99f7f768..db3ae8a7 100644 --- a/targets/bmv2/Makefile.am +++ b/targets/bmv2/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + # a little hacky: the headers are in the parent of the configure subdir AM_CPPFLAGS += \ -I$(top_srcdir)/../../include diff --git a/targets/bmv2/action_helpers.cpp b/targets/bmv2/action_helpers.cpp index ebd3a741..40010b77 100644 --- a/targets/bmv2/action_helpers.cpp +++ b/targets/bmv2/action_helpers.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/action_helpers.h b/targets/bmv2/action_helpers.h index ce8763ca..e41050d9 100644 --- a/targets/bmv2/action_helpers.h +++ b/targets/bmv2/action_helpers.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/common.cpp b/targets/bmv2/common.cpp index 29f2d307..bf09c531 100644 --- a/targets/bmv2/common.cpp +++ b/targets/bmv2/common.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/common.h b/targets/bmv2/common.h index c9cbd4a3..b80da04a 100644 --- a/targets/bmv2/common.h +++ b/targets/bmv2/common.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/conn_mgr.cpp b/targets/bmv2/conn_mgr.cpp index 3475910c..15f69a64 100644 --- a/targets/bmv2/conn_mgr.cpp +++ b/targets/bmv2/conn_mgr.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/conn_mgr.h b/targets/bmv2/conn_mgr.h index 7d150c8d..1f71979b 100644 --- a/targets/bmv2/conn_mgr.h +++ b/targets/bmv2/conn_mgr.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/cpu_send_recv.cpp b/targets/bmv2/cpu_send_recv.cpp index 7c3c125f..173fe0a8 100644 --- a/targets/bmv2/cpu_send_recv.cpp +++ b/targets/bmv2/cpu_send_recv.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/cpu_send_recv.h b/targets/bmv2/cpu_send_recv.h index 840de98c..e37aeb55 100644 --- a/targets/bmv2/cpu_send_recv.h +++ b/targets/bmv2/cpu_send_recv.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/direct_res_spec.cpp b/targets/bmv2/direct_res_spec.cpp index 4fe95c97..c7e921bf 100644 --- a/targets/bmv2/direct_res_spec.cpp +++ b/targets/bmv2/direct_res_spec.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/direct_res_spec.h b/targets/bmv2/direct_res_spec.h index b8126f05..7eab9b75 100644 --- a/targets/bmv2/direct_res_spec.h +++ b/targets/bmv2/direct_res_spec.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/pi_act_prof_imp.cpp b/targets/bmv2/pi_act_prof_imp.cpp index b20a2a20..7728cc4b 100644 --- a/targets/bmv2/pi_act_prof_imp.cpp +++ b/targets/bmv2/pi_act_prof_imp.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/pi_clone_imp.cpp b/targets/bmv2/pi_clone_imp.cpp index 764166c2..79dd9f54 100644 --- a/targets/bmv2/pi_clone_imp.cpp +++ b/targets/bmv2/pi_clone_imp.cpp @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/pi_counter_imp.cpp b/targets/bmv2/pi_counter_imp.cpp index 4aed8d5b..27478bad 100644 --- a/targets/bmv2/pi_counter_imp.cpp +++ b/targets/bmv2/pi_counter_imp.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/pi_imp.cpp b/targets/bmv2/pi_imp.cpp index 2d0e55d2..e7c022a8 100644 --- a/targets/bmv2/pi_imp.cpp +++ b/targets/bmv2/pi_imp.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/pi_learn_imp.cpp b/targets/bmv2/pi_learn_imp.cpp index 7c5fb32f..81d2da07 100644 --- a/targets/bmv2/pi_learn_imp.cpp +++ b/targets/bmv2/pi_learn_imp.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/pi_mc_imp.cpp b/targets/bmv2/pi_mc_imp.cpp index 7529a47c..23bc2565 100644 --- a/targets/bmv2/pi_mc_imp.cpp +++ b/targets/bmv2/pi_mc_imp.cpp @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/pi_meter_imp.cpp b/targets/bmv2/pi_meter_imp.cpp index a267b9d8..f4a69590 100644 --- a/targets/bmv2/pi_meter_imp.cpp +++ b/targets/bmv2/pi_meter_imp.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/bmv2/pi_tables_imp.cpp b/targets/bmv2/pi_tables_imp.cpp index 7e15e0fc..d84255b7 100644 --- a/targets/bmv2/pi_tables_imp.cpp +++ b/targets/bmv2/pi_tables_imp.cpp @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/dummy/Makefile.am b/targets/dummy/Makefile.am index c83c8726..bf9a50db 100644 --- a/targets/dummy/Makefile.am +++ b/targets/dummy/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/lib \ diff --git a/targets/dummy/func_counter.c b/targets/dummy/func_counter.c index d0d7af4b..7c3e563b 100644 --- a/targets/dummy/func_counter.c +++ b/targets/dummy/func_counter.c @@ -1,5 +1,6 @@ /* Copyright 2013-present Barefoot Networks, Inc. * Copyright 2021 VMware, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/dummy/func_counter.h b/targets/dummy/func_counter.h index 1faa1826..5d9d1516 100644 --- a/targets/dummy/func_counter.h +++ b/targets/dummy/func_counter.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/dummy/pi_act_prof_imp.c b/targets/dummy/pi_act_prof_imp.c index 6d07d5a4..bec32553 100644 --- a/targets/dummy/pi_act_prof_imp.c +++ b/targets/dummy/pi_act_prof_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/dummy/pi_clone_imp.c b/targets/dummy/pi_clone_imp.c index eb30e1b9..e9f1676b 100644 --- a/targets/dummy/pi_clone_imp.c +++ b/targets/dummy/pi_clone_imp.c @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/dummy/pi_counter_imp.c b/targets/dummy/pi_counter_imp.c index bd68bd33..e8da0e4a 100644 --- a/targets/dummy/pi_counter_imp.c +++ b/targets/dummy/pi_counter_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/dummy/pi_imp.c b/targets/dummy/pi_imp.c index cefae61d..c54aab6b 100644 --- a/targets/dummy/pi_imp.c +++ b/targets/dummy/pi_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/dummy/pi_learn_imp.c b/targets/dummy/pi_learn_imp.c index eccb8b13..3e098eb3 100644 --- a/targets/dummy/pi_learn_imp.c +++ b/targets/dummy/pi_learn_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/dummy/pi_mc_imp.c b/targets/dummy/pi_mc_imp.c index 37e818a2..1b462e73 100644 --- a/targets/dummy/pi_mc_imp.c +++ b/targets/dummy/pi_mc_imp.c @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/dummy/pi_meter_imp.c b/targets/dummy/pi_meter_imp.c index 915a65e9..8199ade3 100644 --- a/targets/dummy/pi_meter_imp.c +++ b/targets/dummy/pi_meter_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/dummy/pi_tables_imp.c b/targets/dummy/pi_tables_imp.c index 0f1047e4..beca456d 100644 --- a/targets/dummy/pi_tables_imp.c +++ b/targets/dummy/pi_tables_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/rpc/Makefile.am b/targets/rpc/Makefile.am index e2ce1159..e0ab9269 100644 --- a/targets/rpc/Makefile.am +++ b/targets/rpc/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + # a little hacky: the headers are in the parent of the configure subdir AM_CPPFLAGS += \ -I$(top_srcdir)/include diff --git a/targets/rpc/notifications.c b/targets/rpc/notifications.c index c30f5b4e..a8b22b67 100644 --- a/targets/rpc/notifications.c +++ b/targets/rpc/notifications.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/rpc/pi_act_prof_imp.c b/targets/rpc/pi_act_prof_imp.c index ce6dedf8..70b13343 100644 --- a/targets/rpc/pi_act_prof_imp.c +++ b/targets/rpc/pi_act_prof_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/rpc/pi_clone_imp.c b/targets/rpc/pi_clone_imp.c index 2e373441..175d8148 100644 --- a/targets/rpc/pi_clone_imp.c +++ b/targets/rpc/pi_clone_imp.c @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/rpc/pi_counter_imp.c b/targets/rpc/pi_counter_imp.c index eebc66c4..36f9d933 100644 --- a/targets/rpc/pi_counter_imp.c +++ b/targets/rpc/pi_counter_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/rpc/pi_imp.c b/targets/rpc/pi_imp.c index 6c7aad03..a0627ad6 100644 --- a/targets/rpc/pi_imp.c +++ b/targets/rpc/pi_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/rpc/pi_learn_imp.c b/targets/rpc/pi_learn_imp.c index bd8ed523..a62834ba 100644 --- a/targets/rpc/pi_learn_imp.c +++ b/targets/rpc/pi_learn_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/rpc/pi_mc_imp.c b/targets/rpc/pi_mc_imp.c index 00606645..482688e3 100644 --- a/targets/rpc/pi_mc_imp.c +++ b/targets/rpc/pi_mc_imp.c @@ -1,4 +1,5 @@ /* Copyright 2018-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/rpc/pi_meter_imp.c b/targets/rpc/pi_meter_imp.c index 86c9285a..ae166a71 100644 --- a/targets/rpc/pi_meter_imp.c +++ b/targets/rpc/pi_meter_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/rpc/pi_rpc.c b/targets/rpc/pi_rpc.c index d383935e..0546e420 100644 --- a/targets/rpc/pi_rpc.c +++ b/targets/rpc/pi_rpc.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/rpc/pi_rpc.h b/targets/rpc/pi_rpc.h index 82bc574b..84b4e350 100644 --- a/targets/rpc/pi_rpc.h +++ b/targets/rpc/pi_rpc.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/targets/rpc/pi_tables_imp.c b/targets/rpc/pi_tables_imp.c index bb4dd450..8ca44984 100644 --- a/targets/rpc/pi_tables_imp.c +++ b/targets/rpc/pi_tables_imp.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/CLI/Makefile.am b/tests/CLI/Makefile.am index 90eaca22..cb16a913 100644 --- a/tests/CLI/Makefile.am +++ b/tests/CLI/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_TESTS_ENVIRONMENT = export PI_TEST_WITH_VALGRIND=1; diff --git a/tests/CLI/testdata/swap_1.p4 b/tests/CLI/testdata/swap_1.p4 index 3539a5bd..1992d14c 100644 --- a/tests/CLI/testdata/swap_1.p4 +++ b/tests/CLI/testdata/swap_1.p4 @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/CLI/testdata/swap_2.p4 b/tests/CLI/testdata/swap_2.p4 index f284fd83..a2371684 100644 --- a/tests/CLI/testdata/swap_2.p4 +++ b/tests/CLI/testdata/swap_2.p4 @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/Makefile.am b/tests/Makefile.am index 7d88cb39..2d198992 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,3 +1,20 @@ +# Copyright 2016 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 if WITH_CLI_TESTS diff --git a/tests/frontends/generic/test.c b/tests/frontends/generic/test.c index cec1bf97..5f2aff4c 100644 --- a/tests/frontends/generic/test.c +++ b/tests/frontends/generic/test.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/main.c b/tests/main.c index e6d83b87..d8f2247d 100644 --- a/tests/main.c +++ b/tests/main.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/test_bmv2_json_reader.c b/tests/test_bmv2_json_reader.c index 44bb5597..7fb87185 100644 --- a/tests/test_bmv2_json_reader.c +++ b/tests/test_bmv2_json_reader.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/test_getnetv.c b/tests/test_getnetv.c index 2c1a5a6e..7240c7f1 100644 --- a/tests/test_getnetv.c +++ b/tests/test_getnetv.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/test_p4info.c b/tests/test_p4info.c index 4a7872f8..91b23c5a 100644 --- a/tests/test_p4info.c +++ b/tests/test_p4info.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/testdata/act_prof.p4 b/tests/testdata/act_prof.p4 index 3cb3332c..1f6ec44a 100644 --- a/tests/testdata/act_prof.p4 +++ b/tests/testdata/act_prof.p4 @@ -1,3 +1,19 @@ +/* Copyright 2017 Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + action a() { } action_profile ap { actions { a; } size : 128; } diff --git a/tests/testdata/customids.p4 b/tests/testdata/customids.p4 index 6c1bc7ac..a80c2725 100644 --- a/tests/testdata/customids.p4 +++ b/tests/testdata/customids.p4 @@ -1,4 +1,5 @@ // Copyright 2020 VMware, Inc. +// SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/tests/testdata/l2_switch.p4 b/tests/testdata/l2_switch.p4 index ea5d45b7..38a74b77 100644 --- a/tests/testdata/l2_switch.p4 +++ b/tests/testdata/l2_switch.p4 @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/testdata/pragmas.p4 b/tests/testdata/pragmas.p4 index 124711ba..dd26f8b8 100644 --- a/tests/testdata/pragmas.p4 +++ b/tests/testdata/pragmas.p4 @@ -1,3 +1,18 @@ +/* Copyright 2016 Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ @pragma my_pragma v1 header_type h_t { fields { f32 : 32; } } diff --git a/tests/testdata/stats.p4 b/tests/testdata/stats.p4 index 87d33e36..8502527e 100644 --- a/tests/testdata/stats.p4 +++ b/tests/testdata/stats.p4 @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/testdata/unittest.p4 b/tests/testdata/unittest.p4 index 3619976b..013e619f 100644 --- a/tests/testdata/unittest.p4 +++ b/tests/testdata/unittest.p4 @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/testdata/valid.p4 b/tests/testdata/valid.p4 index 2cf2714e..ac029443 100644 --- a/tests/testdata/valid.p4 +++ b/tests/testdata/valid.p4 @@ -1,3 +1,18 @@ +/* Copyright 2016 Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Standard L2 Ethernet header header_type ethernet_t { fields { diff --git a/tests/utils.c b/tests/utils.c index deaa5f8d..bcbb1e0d 100644 --- a/tests/utils.c +++ b/tests/utils.c @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tests/utils.h b/tests/utils.h index 71e80615..d7d82baa 100644 --- a/tests/utils.h +++ b/tests/utils.h @@ -1,4 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/tools/check_style.sh b/tools/check_style.sh index 4f6ee6ef..59054527 100755 --- a/tools/check_style.sh +++ b/tools/check_style.sh @@ -1,5 +1,22 @@ #!/bin/bash +# Copyright 2013-present Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + THIS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) ROOT_DIR=$THIS_DIR/.. diff --git a/tools/run_valgrind.sh b/tools/run_valgrind.sh index 34133971..7a2dbd66 100755 --- a/tools/run_valgrind.sh +++ b/tools/run_valgrind.sh @@ -1,5 +1,22 @@ #!/bin/bash +# Copyright 2013-present Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + THIS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) TEST_DIR=$THIS_DIR/../tests diff --git a/tools/update_test_bmv2_jsons.py b/tools/update_test_bmv2_jsons.py index defb9d41..b61ae38c 100755 --- a/tools/update_test_bmv2_jsons.py +++ b/tools/update_test_bmv2_jsons.py @@ -1,5 +1,22 @@ #!/usr/bin/env python3 +# Copyright 2013-present Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Antonin Bas (antonin@barefootnetworks.com) + import argparse import fnmatch import os From ea17b7107c935d213ac7c39064fb8beee00a083b Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Mon, 3 Feb 2025 02:54:10 +0000 Subject: [PATCH 2/5] Try removing comments from Makefile.am files to see if that fixes Bazel build Signed-off-by: Andy Fingerhut --- CLI/Makefile.am | 17 ----------------- Makefile.am | 17 ----------------- bin/Makefile.am | 17 ----------------- examples/Makefile.am | 17 ----------------- frontends_extra/Makefile.am | 17 ----------------- frontends_extra/cpp/Makefile.am | 17 ----------------- frontends_extra/cpp/example/Makefile.am | 17 ----------------- generators/Makefile.am | 17 ----------------- include/Makefile.am | 19 ------------------- lib/Makefile.am | 17 ----------------- proto/Makefile.am | 17 ----------------- proto/demo_grpc/Makefile.am | 17 ----------------- proto/frontend/Makefile.am | 17 ----------------- proto/p4info/Makefile.am | 17 ----------------- proto/server/Makefile.am | 17 ----------------- proto/tests/Makefile.am | 17 ----------------- src/Makefile.am | 17 ----------------- targets/Makefile.am | 17 ----------------- targets/bmv2/Makefile.am | 17 ----------------- targets/dummy/Makefile.am | 17 ----------------- targets/rpc/Makefile.am | 17 ----------------- tests/CLI/Makefile.am | 17 ----------------- tests/Makefile.am | 17 ----------------- 23 files changed, 393 deletions(-) diff --git a/CLI/Makefile.am b/CLI/Makefile.am index ee6f719f..a46a7610 100644 --- a/CLI/Makefile.am +++ b/CLI/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 lib_LTLIBRARIES = libpicli.la diff --git a/Makefile.am b/Makefile.am index cae30dd9..1ed70855 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - # DOXYGEN SUPPORT @DX_RULES@ diff --git a/bin/Makefile.am b/bin/Makefile.am index d6432645..e55f044a 100644 --- a/bin/Makefile.am +++ b/bin/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS += \ diff --git a/examples/Makefile.am b/examples/Makefile.am index e2e605be..634a32d2 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS = \ diff --git a/frontends_extra/Makefile.am b/frontends_extra/Makefile.am index f7877139..aaff245a 100644 --- a/frontends_extra/Makefile.am +++ b/frontends_extra/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 if WITH_FE_CPP diff --git a/frontends_extra/cpp/Makefile.am b/frontends_extra/cpp/Makefile.am index 7b9186e4..b4ef9ed6 100644 --- a/frontends_extra/cpp/Makefile.am +++ b/frontends_extra/cpp/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 SUBDIRS = . example diff --git a/frontends_extra/cpp/example/Makefile.am b/frontends_extra/cpp/example/Makefile.am index 157e0ae1..abb010e4 100644 --- a/frontends_extra/cpp/example/Makefile.am +++ b/frontends_extra/cpp/example/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 check_PROGRAMS = example diff --git a/generators/Makefile.am b/generators/Makefile.am index 33cbef13..cc027fd7 100644 --- a/generators/Makefile.am +++ b/generators/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS = \ diff --git a/include/Makefile.am b/include/Makefile.am index 392810b5..c241f823 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,22 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - -# TODO(antonin): move act_prof to some "extern" directory - nobase_include_HEADERS = \ PI/pi.h \ PI/pi_base.h \ diff --git a/lib/Makefile.am b/lib/Makefile.am index 459b6ac4..6a396d74 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 noinst_LTLIBRARIES = libpitoolkit.la diff --git a/proto/Makefile.am b/proto/Makefile.am index d4cc9354..ed094c53 100644 --- a/proto/Makefile.am +++ b/proto/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 # Remove -Werror diff --git a/proto/demo_grpc/Makefile.am b/proto/demo_grpc/Makefile.am index bc224f18..e1430d3b 100644 --- a/proto/demo_grpc/Makefile.am +++ b/proto/demo_grpc/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS = \ diff --git a/proto/frontend/Makefile.am b/proto/frontend/Makefile.am index 7c9757b4..29e1f677 100644 --- a/proto/frontend/Makefile.am +++ b/proto/frontend/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 # for deprecated Protobuf fields diff --git a/proto/p4info/Makefile.am b/proto/p4info/Makefile.am index 4acff3bf..84f0a307 100644 --- a/proto/p4info/Makefile.am +++ b/proto/p4info/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS = \ diff --git a/proto/server/Makefile.am b/proto/server/Makefile.am index b916026b..0ec04457 100644 --- a/proto/server/Makefile.am +++ b/proto/server/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2017 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_CPPFLAGS = \ diff --git a/proto/tests/Makefile.am b/proto/tests/Makefile.am index 0affb75d..6037739f 100644 --- a/proto/tests/Makefile.am +++ b/proto/tests/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 # for deprecated Protobuf fields diff --git a/src/Makefile.am b/src/Makefile.am index 51875660..a61b2b2b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - AM_CPPFLAGS += \ -I$(top_srcdir)/include \ -I$(top_srcdir)/lib \ diff --git a/targets/Makefile.am b/targets/Makefile.am index 18fe6354..1b5e81bd 100644 --- a/targets/Makefile.am +++ b/targets/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 if WITH_BMV2 diff --git a/targets/bmv2/Makefile.am b/targets/bmv2/Makefile.am index db3ae8a7..99f7f768 100644 --- a/targets/bmv2/Makefile.am +++ b/targets/bmv2/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - # a little hacky: the headers are in the parent of the configure subdir AM_CPPFLAGS += \ -I$(top_srcdir)/../../include diff --git a/targets/dummy/Makefile.am b/targets/dummy/Makefile.am index bf9a50db..c83c8726 100644 --- a/targets/dummy/Makefile.am +++ b/targets/dummy/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/lib \ diff --git a/targets/rpc/Makefile.am b/targets/rpc/Makefile.am index e0ab9269..e2ce1159 100644 --- a/targets/rpc/Makefile.am +++ b/targets/rpc/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - # a little hacky: the headers are in the parent of the configure subdir AM_CPPFLAGS += \ -I$(top_srcdir)/include diff --git a/tests/CLI/Makefile.am b/tests/CLI/Makefile.am index cb16a913..90eaca22 100644 --- a/tests/CLI/Makefile.am +++ b/tests/CLI/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 AM_TESTS_ENVIRONMENT = export PI_TEST_WITH_VALGRIND=1; diff --git a/tests/Makefile.am b/tests/Makefile.am index 2d198992..7d88cb39 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,20 +1,3 @@ -# Copyright 2016 Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Antonin Bas (antonin@barefootnetworks.com) - ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 if WITH_CLI_TESTS From 3a47b0f96eba613fa0afed6fd6ec6c4adb6f8a38 Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Mon, 3 Feb 2025 03:04:51 +0000 Subject: [PATCH 3/5] Restore include/Makefile.am back to its original contents Signed-off-by: Andy Fingerhut --- include/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/Makefile.am b/include/Makefile.am index c241f823..63ff93dd 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,3 +1,5 @@ +# TODO(antonin): move act_prof to some "extern" directory + nobase_include_HEADERS = \ PI/pi.h \ PI/pi_base.h \ From 14fb26ce87d20eb25cb85a810a551cc15b4c7001 Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Mon, 3 Feb 2025 03:23:53 +0000 Subject: [PATCH 4/5] Make one SPDX's comment prefix fit in with its environment better. Signed-off-by: Andy Fingerhut --- proto/demo_grpc/app.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/demo_grpc/app.cpp b/proto/demo_grpc/app.cpp index 539ce5b4..4da783ae 100644 --- a/proto/demo_grpc/app.cpp +++ b/proto/demo_grpc/app.cpp @@ -1,5 +1,5 @@ /* Copyright 2013-present Barefoot Networks, Inc. -# SPDX-License-Identifier: Apache-2.0 + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From c84bd0deced94c82df530c36163bd05c9b68c634 Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Tue, 4 Feb 2025 07:39:56 -0500 Subject: [PATCH 5/5] Temporarily pin Bazel build in CI to Ubuntu 22.04 Signed-off-by: Andy Fingerhut --- .github/workflows/bazel-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bazel-build.yml b/.github/workflows/bazel-build.yml index 97f5d04b..effcc60e 100644 --- a/.github/workflows/bazel-build.yml +++ b/.github/workflows/bazel-build.yml @@ -10,7 +10,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 env: BAZEL: bazelisk-linux-amd64 steps: