Skip to content

Commit 17802cf

Browse files
authored
Add SPDX license id lines to source files (#618)
* Add SPDX license id lines to source files Signed-off-by: Andy Fingerhut <[email protected]> * Try removing comments from Makefile.am files to see if that fixes Bazel build Signed-off-by: Andy Fingerhut <[email protected]> * Restore include/Makefile.am back to its original contents Signed-off-by: Andy Fingerhut <[email protected]> * Make one SPDX's comment prefix fit in with its environment better. Signed-off-by: Andy Fingerhut <[email protected]> * Temporarily pin Bazel build in CI to Ubuntu 22.04 Signed-off-by: Andy Fingerhut <[email protected]> --------- Signed-off-by: Andy Fingerhut <[email protected]> Signed-off-by: Andy Fingerhut <[email protected]>
1 parent 6be0352 commit 17802cf

File tree

280 files changed

+524
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+524
-1
lines changed

CLI/act_profs/act_prof_common.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/act_profs/act_prof_common.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/act_profs/act_prof_create_member.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/act_profs/act_prof_dump.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/act_profs/act_prof_groups.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/add_p4.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/commands.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/counter_commands.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/device_commands.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/direct_res_reset.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/error_codes.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/error_codes.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/main.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
22
* Copyright 2021 VMware, Inc.
3+
* SPDX-License-Identifier: Apache-2.0
34
*
45
* Licensed under the Apache License, Version 2.0 (the "License");
56
* you may not use this file except in compliance with the License.

CLI/meter_commands.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
/* Copyright 2013-present Barefoot Networks, Inc.
3+
* SPDX-License-Identifier: Apache-2.0
34
*
45
* Licensed under the Apache License, Version 2.0 (the "License");
56
* you may not use this file except in compliance with the License.

CLI/p4_config_repo.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
22
* Copyright 2021 VMware, Inc.
3+
* SPDX-License-Identifier: Apache-2.0
34
*
45
* Licensed under the Apache License, Version 2.0 (the "License");
56
* you may not use this file except in compliance with the License.

CLI/p4_config_repo.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/table_add.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/table_common.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/table_common.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/table_delete.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/table_dump.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/table_modify.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/table_reset_default.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/table_set_default.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/utils.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

CLI/utils.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Copyright 2017 Barefoot Networks, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# Antonin Bas ([email protected])
17+
118
FROM p4lang/third-party:latest
219
LABEL maintainer="P4 Developers <[email protected]>"
320
LABEL description="This Docker image includes only the most widely-used PI \

Dockerfile.bmv2

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Copyright 2017 Barefoot Networks, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# Antonin Bas ([email protected])
17+
118
FROM p4lang/behavioral-model:no-pi
219
LABEL maintainer="P4 Developers <[email protected]>"
320
LABEL description="This Docker image includes all of the PI artifacts, \

autogen.sh

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
#!/bin/sh
22

3+
# Copyright 2016 Barefoot Networks, Inc.
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
# Antonin Bas ([email protected])
19+
320
exec autoreconf -fi

bin/gen_pi_json.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

bin/rpc_server.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

examples/example_1.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

examples/example_2.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

frontends_extra/cpp/PI/frontends/cpp/tables.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

frontends_extra/cpp/example/example.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

frontends_extra/cpp/src/tables.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

generators/fe_defines.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/frontends/generic/pi.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/int/pi_int.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/int/rpc_common.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/int/serialize.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/p4info.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/p4info/act_profs.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/p4info/actions.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/p4info/counters.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/p4info/digests.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2018-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/p4info/meters.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/p4info/tables.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/pi.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/pi_act_prof.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/pi_base.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/pi_clone.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2018-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/pi_counter.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/pi_learn.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/pi_mc.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2018-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/pi_meter.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/pi_tables.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

include/PI/pi_value.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2013-present Barefoot Networks, Inc.
2+
* SPDX-License-Identifier: Apache-2.0
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)