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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2026 Steffen Smolka
#
# SPDX-License-Identifier: Apache-2.0

# Exclude bazel sub-projects so `bazel build //...` works.
bazel/example

Expand Down
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2026 Steffen Smolka
#
# SPDX-License-Identifier: Apache-2.0

# Use Bzlmod (`MODULE.bazel`) instead of `WORKSPACE.bazel`.
common --enable_bzlmod
common --noenable_workspace
Expand Down
3 changes: 3 additions & 0 deletions .bazelversion.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2022 Steffen Smolka

SPDX-License-Identifier: Apache-2.0
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
# SPDX-FileCopyrightText: 2018 Antonin Bas
#
# SPDX-License-Identifier: Apache-2.0

name: Bug report
about: Create a report an issue with the code / documents hosted in this repository

Expand Down
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
# SPDX-FileCopyrightText: 2018 Antonin Bas
#
# SPDX-License-Identifier: Apache-2.0

name: Feature request
about: Suggest an idea for this project

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/any-branch-uploads.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Antonin Bas
#
# SPDX-License-Identifier: Apache-2.0

name: Any branch uploads

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/bazel-build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Steffen Smolka
#
# SPDX-License-Identifier: Apache-2.0

name: "Bazel build of protobufs"

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Antonin Bas
#
# SPDX-License-Identifier: Apache-2.0

name: Check generated code

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/google-rpc-status-synced.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Steffen Smolka
#
# SPDX-License-Identifier: Apache-2.0

name: Ensure google/rpc/status.proto is synced with upstream.

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/main-branch-uploads.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Antonin Bas
#
# SPDX-License-Identifier: Apache-2.0

name: Main branch uploads

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/rust-build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Steffen Smolka
#
# SPDX-License-Identifier: Apache-2.0

name: "Rust build"

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Antonin Bas
#
# SPDX-License-Identifier: Apache-2.0

name: Build spec

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tag-uploads.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Antonin Bas
#
# SPDX-License-Identifier: Apache-2.0

name: Tag uploads

on:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2018 Antonin Bas
#
# SPDX-License-Identifier: Apache-2.0

# Emacs
*~
docs/v1/build/
Expand Down
3 changes: 3 additions & 0 deletions BUILD.bazel.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2026 Steffen Smolka

SPDX-License-Identifier: Apache-2.0
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2019 Antonin Bas

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

You can fork the repo and submit a pull request in Github.

### Apache CLA
Expand Down
1 change: 1 addition & 0 deletions LICENSE
3 changes: 3 additions & 0 deletions MODULE.bazel.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2026 Steffen Smolka

SPDX-License-Identifier: Apache-2.0
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2018 The P4 Language Consortium
SPDX-License-Identifier: Apache-2.0
-->

# P4Runtime

P4 is a language for programming the data plane of network devices.
Expand Down
3 changes: 3 additions & 0 deletions WORKSPACE.bzlmod.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2026 Steffen Smolka

SPDX-License-Identifier: Apache-2.0
4 changes: 4 additions & 0 deletions bazel/example/using-bzlmod/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Steffen Smolka
#
# SPDX-License-Identifier: Apache-2.0

# Use Bzlmod (`MODULE.bazel`) instead of `WORKSPACE.bazel`.
common --enable_bzlmod
common --noenable_workspace
Expand Down
3 changes: 3 additions & 0 deletions bazel/example/using-bzlmod/BUILD.bazel.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 Steffen Smolka

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions bazel/example/using-bzlmod/MODULE.bazel.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 Steffen Smolka

SPDX-License-Identifier: Apache-2.0
6 changes: 6 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2018 Antonin Bas

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

# P4Runtime specification documents

## Inline code with backticks
Expand Down
3 changes: 3 additions & 0 deletions docs/libre-office.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2018 Antonin Bas

SPDX-License-Identifier: Apache-2.0
4 changes: 4 additions & 0 deletions docs/tools/Dockerfile.asciidoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Davide Scano
#
# SPDX-License-Identifier: Apache-2.0

FROM ruby:3.3.5
LABEL maintainer="P4 API Working Group <p4-dev@lists.p4.org>"
LABEL description="Dockerfile used for building the asciidoc specification"
Expand Down
6 changes: 6 additions & 0 deletions docs/tools/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2018 Antonin Bas

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

Dockerfile.asciidoc is used to build a Docker image which we use to render the
P4Runtime specification (HTML & PDF) in CI. The image can also be used locally
to build the specification without having to worry about installing all the
Expand Down
3 changes: 3 additions & 0 deletions docs/tools/fonts/fix_helvetica.conf.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2018 Antonin Bas

SPDX-License-Identifier: Apache-2.0
6 changes: 6 additions & 0 deletions docs/v1/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2018 Antonin Bas

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

# P4Runtime Specification Version 1

This directory contains the sources for generating the official P4Runtime
Expand Down
6 changes: 6 additions & 0 deletions docs/v1/guidance-for-generating-p4info.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2019 Andy Fingerhut

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

# Guidance for generating P4Info messages


Expand Down
6 changes: 6 additions & 0 deletions docs/v1/p4runtime-id-notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2020 Andy Fingerhut

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

# P4Runtime numeric id notes

There are many kinds of numeric identifiers used in the P4Runtime API
Expand Down
4 changes: 4 additions & 0 deletions docs/v1/resources/figs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# SPDX-FileCopyrightText: 2025 Davide Scano
#
# SPDX-License-Identifier: Apache-2.0

stem*
12 changes: 11 additions & 1 deletion docs/v1/resources/fonts/verify-font
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# SPDX-FileCopyrightText: 2012 Dan Allen
# SPDX-FileCopyrightText: 2012 Ryan Waldron
# SPDX-FileCopyrightText: 2012 Sarah White
# SPDX-FileCopyrightText: 2012 the individual contributors to Asciidoctor
#
# SPDX-License-Identifier: MIT

# Source: The Asciidoctor PDF documentation.
# Retrieved 2025 from https://docs.asciidoctor.org/pdf-converter/latest/theme/prepare-custom-font/

require 'ttfunk'
require 'ttfunk/subset_collection'

ttf_subsets = TTFunk::SubsetCollection.new TTFunk::File.open ARGV[0]
(0...(ttf_subsets.instance_variable_get :@subsets).size).each {|idx| ttf_subsets[idx].encode }
(0...(ttf_subsets.instance_variable_get :@subsets).size).each {|idx| ttf_subsets[idx].encode }
4 changes: 4 additions & 0 deletions docs/v1/resources/theme/p4-stylesheet.css.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SPDX-FileCopyrightText: 2013 Jonathan Neal
SPDX-FileCopyrightText: 2013 Nicolas Gallagher

SPDX-License-Identifier: MIT
6 changes: 6 additions & 0 deletions docs/v1/resources/theme/references.bib
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@Comment{
SPDX-FileCopyrightText: 2025 Davide Scano

SPDX-License-Identifier: Apache-2.0
}

@ONLINE { P4RuntimeRepo,
title = "p4lang/p4Runtime repository",
subtitle = "P4Runtime Protobuf definition files and specification",
Expand Down
3 changes: 3 additions & 0 deletions go.mod.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2020 Antonin Bas

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions go.sum.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2020 Antonin Bas

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions proto/BUILD.bazel.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2020 Steffen Smolka

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions proto/google/rpc/status.proto.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2026 Google LLC

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions proto/p4/config/v1/BUILD.bazel.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2026 Steffen Smolka

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions proto/p4/v1/BUILD.bazel.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2026 Steffen Smolka

SPDX-License-Identifier: Apache-2.0
1 change: 0 additions & 1 deletion py/LICENSE

This file was deleted.

Loading
Loading