Skip to content

Commit b16fc09

Browse files
tklauserAlexei Starovoitov
authored andcommitted
bpf: Fix two typos in uapi/linux/bpf.h
Also remove trailing whitespaces in bpf_skb_get_tunnel_key example code. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent c210773 commit b16fc09

File tree

2 files changed

+10
-10
lines changed
  • include/uapi/linux
  • tools/include/uapi/linux

2 files changed

+10
-10
lines changed

include/uapi/linux/bpf.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ union bpf_attr {
767767
*
768768
* Also, note that **bpf_trace_printk**\ () is slow, and should
769769
* only be used for debugging purposes. For this reason, a notice
770-
* bloc (spanning several lines) is printed to kernel logs and
770+
* block (spanning several lines) is printed to kernel logs and
771771
* states that the helper should not be used "for production use"
772772
* the first time this helper is used (or more precisely, when
773773
* **trace_printk**\ () buffers are allocated). For passing values
@@ -1033,14 +1033,14 @@ union bpf_attr {
10331033
*
10341034
* int ret;
10351035
* struct bpf_tunnel_key key = {};
1036-
*
1036+
*
10371037
* ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0);
10381038
* if (ret < 0)
10391039
* return TC_ACT_SHOT; // drop packet
1040-
*
1040+
*
10411041
* if (key.remote_ipv4 != 0x0a000001)
10421042
* return TC_ACT_SHOT; // drop packet
1043-
*
1043+
*
10441044
* return TC_ACT_OK; // accept packet
10451045
*
10461046
* This interface can also be used with all encapsulation devices
@@ -1147,7 +1147,7 @@ union bpf_attr {
11471147
* Description
11481148
* Retrieve the realm or the route, that is to say the
11491149
* **tclassid** field of the destination for the *skb*. The
1150-
* indentifier retrieved is a user-provided tag, similar to the
1150+
* identifier retrieved is a user-provided tag, similar to the
11511151
* one used with the net_cls cgroup (see description for
11521152
* **bpf_get_cgroup_classid**\ () helper), but here this tag is
11531153
* held by a route (a destination entry), not by a task.

tools/include/uapi/linux/bpf.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ union bpf_attr {
767767
*
768768
* Also, note that **bpf_trace_printk**\ () is slow, and should
769769
* only be used for debugging purposes. For this reason, a notice
770-
* bloc (spanning several lines) is printed to kernel logs and
770+
* block (spanning several lines) is printed to kernel logs and
771771
* states that the helper should not be used "for production use"
772772
* the first time this helper is used (or more precisely, when
773773
* **trace_printk**\ () buffers are allocated). For passing values
@@ -1033,14 +1033,14 @@ union bpf_attr {
10331033
*
10341034
* int ret;
10351035
* struct bpf_tunnel_key key = {};
1036-
*
1036+
*
10371037
* ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0);
10381038
* if (ret < 0)
10391039
* return TC_ACT_SHOT; // drop packet
1040-
*
1040+
*
10411041
* if (key.remote_ipv4 != 0x0a000001)
10421042
* return TC_ACT_SHOT; // drop packet
1043-
*
1043+
*
10441044
* return TC_ACT_OK; // accept packet
10451045
*
10461046
* This interface can also be used with all encapsulation devices
@@ -1147,7 +1147,7 @@ union bpf_attr {
11471147
* Description
11481148
* Retrieve the realm or the route, that is to say the
11491149
* **tclassid** field of the destination for the *skb*. The
1150-
* indentifier retrieved is a user-provided tag, similar to the
1150+
* identifier retrieved is a user-provided tag, similar to the
11511151
* one used with the net_cls cgroup (see description for
11521152
* **bpf_get_cgroup_classid**\ () helper), but here this tag is
11531153
* held by a route (a destination entry), not by a task.

0 commit comments

Comments
 (0)