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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CLI/act_profs/act_prof_common.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/act_profs/act_prof_common.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/act_profs/act_prof_create_member.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/act_profs/act_prof_dump.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/act_profs/act_prof_groups.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/add_p4.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/commands.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/counter_commands.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/device_commands.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/direct_res_reset.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/error_codes.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/error_codes.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/main.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/meter_commands.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/p4_config_repo.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/p4_config_repo.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/table_add.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/table_common.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/table_common.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/table_delete.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/table_dump.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/table_modify.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/table_reset_default.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/table_set_default.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/utils.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions CLI/utils.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <p4-dev@lists.p4.org>"
LABEL description="This Docker image includes only the most widely-used PI \
Expand Down
17 changes: 17 additions & 0 deletions Dockerfile.bmv2
Original file line number Diff line number Diff line change
@@ -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 <p4-dev@lists.p4.org>"
LABEL description="This Docker image includes all of the PI artifacts, \
Expand Down
17 changes: 17 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions bin/gen_pi_json.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions bin/rpc_server.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions examples/example_1.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions examples/example_2.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions frontends_extra/cpp/PI/frontends/cpp/tables.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions frontends_extra/cpp/example/example.cpp
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions frontends_extra/cpp/src/tables.cpp
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions generators/fe_defines.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/frontends/generic/pi.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/int/pi_int.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/int/rpc_common.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/int/serialize.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/p4info.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/p4info/act_profs.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/p4info/actions.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/p4info/counters.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/p4info/digests.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/p4info/meters.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/p4info/tables.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/pi.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/pi_act_prof.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/pi_base.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/pi_clone.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/pi_counter.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/pi_learn.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/pi_mc.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/pi_meter.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/pi_tables.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/PI/pi_value.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Loading