Skip to content

Commit

Permalink
[documentation] Add hyperlinks to the actual directory in the README …
Browse files Browse the repository at this point in the history
…file (#4531)

* Add directory link for examples in DPDK

 Added directory link for examples directory in DPDK backend's Guide

* [Docs] Add Directory link for p4tc_samples

[Docs] Added Directory link for "testdata/p4tc_samples" in Guide of "tc" Backend.

* Add "examples" to link text 

Added "examples" term as link text along with "directory".

* Add "testdata/p4tc_samples" to link text 

Added "testdata/p4tc_samples" term as link text along with "directory".

* Add directory link for "examples" in "ubpf"

Added directory link for examples directory in "ubpf" backend's Guide

* [Fix] Formatting of directory name

Co-authored-by: Fabian Ruffy <5960321+fruffy@users.noreply.github.com>

* [Fix] Add 'the' before 'example' in documentation

Co-authored-by: Fabian Ruffy <5960321+fruffy@users.noreply.github.com>

---------

Co-authored-by: Fabian Ruffy <5960321+fruffy@users.noreply.github.com>
  • Loading branch information
AdarshRawat1 and fruffy authored Mar 16, 2024
1 parent 2070ecb commit 386e56c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backends/dpdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ generates the 'spec' file to configure the DPDK pipeline.

## How to use it?

A sample P4 program can be found in the `examples` directory. To
A sample P4 program can be found in the [`examples` directory](./examples). To
generate the 'spec' file:
```bash
p4c-dpdk --arch psa vxlan.p4 -o vxlan.spec
Expand Down
2 changes: 1 addition & 1 deletion backends/tc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The backend for TC reuses code from the p4c-ebpf for generating c file.

## How to use it?

The sample p4 programs are located in the "testdata/p4tc_samples" directory.
The sample p4 programs are located in the [`testdata/p4tc_samples` directory](../../testdata/p4tc_samples).

To generate the 'template' file, 'c' file and 'json' file:

Expand Down
2 changes: 1 addition & 1 deletion backends/ubpf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ However, we introduced some modifications, which are listed below:

### How to use?

The sample P4 programs are located in `examples/` directory. We have tested them with the [P4rt-OVS](https://github.com/Orange-OpenSource/p4rt-ovs) switch -
The sample P4 programs are located in the [`examples/` directory](./examples). We have tested them with the [P4rt-OVS](https://github.com/Orange-OpenSource/p4rt-ovs) switch -
the Open vSwitch that can be extended with BPF programs at runtime. See [the detailed tutorial](./docs/EXAMPLES.md) on how to run and test those examples.

In order to generate the C code use the following command:
Expand Down

0 comments on commit 386e56c

Please sign in to comment.