diff mbox series

samples/bpf: correct comment in sock_example.c

Message ID 20180417022520.2412-1-shhuiw@foxmail.com
State Accepted, archived
Delegated to: BPF Maintainers
Headers show
Series samples/bpf: correct comment in sock_example.c | expand

Commit Message

Wang Sheng-Hui April 17, 2018, 2:25 a.m. UTC
The program run against loopback interace "lo", not "eth0".
Correct the comment.

Signed-off-by: Wang Sheng-Hui <shhuiw@foxmail.com>
---
 samples/bpf/sock_example.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Alexei Starovoitov April 17, 2018, 11:39 p.m. UTC | #1
On Tue, Apr 17, 2018 at 10:25:20AM +0800, Wang Sheng-Hui wrote:
> The program run against loopback interace "lo", not "eth0".
> Correct the comment.
> 
> Signed-off-by: Wang Sheng-Hui <shhuiw@foxmail.com>

Acked-by: Alexei Starovoitov <ast@kernel.org>

for future patches please use the following format for the subject:
[PATCH bpf-next] samples/bpf: ...
Daniel Borkmann April 18, 2018, 12:47 p.m. UTC | #2
On 04/17/2018 04:25 AM, Wang Sheng-Hui wrote:
> The program run against loopback interace "lo", not "eth0".
> Correct the comment.
> 
> Signed-off-by: Wang Sheng-Hui <shhuiw@foxmail.com>

Applied to bpf-next, thanks Wang!
diff mbox series

Patch

diff --git a/samples/bpf/sock_example.c b/samples/bpf/sock_example.c
index 6fc6e193ef1b..33a637507c00 100644
--- a/samples/bpf/sock_example.c
+++ b/samples/bpf/sock_example.c
@@ -9,10 +9,10 @@ 
  *   if (value)
  *        (*(u64*)value) += 1;
  *
- * - attaches this program to eth0 raw socket
+ * - attaches this program to loopback interface "lo" raw socket
  *
  * - every second user space reads map[tcp], map[udp], map[icmp] to see
- *   how many packets of given protocol were seen on eth0
+ *   how many packets of given protocol were seen on "lo"
  */
 #include <stdio.h>
 #include <unistd.h>