Skip to content

Commit

Permalink
xdp_bench02: add better documenation of what program does
Browse files Browse the repository at this point in the history
  • Loading branch information
netoptimizer committed Mar 31, 2017
1 parent 89ec978 commit ea20160
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kernel/samples/bpf/xdp_bench02_drop_pattern_user.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
/* Copyright(c) 2017 Jesper Dangaard Brouer, Red Hat, Inc.
*/
static const char *__doc__=
" XDP bench02: measure effect of different drop patterns";
" XDP bench02: measure effect of different drop patterns\n\n"
" This program simply drop half of all incoming packets.\n"
" Instead of dropping every second packet, half of the packets can also\n"
" be dropped by dropping N-packets followed by accepting N-packets.\n"
" Such a N-drop-N-accept pattern, resembles what RX-stages can achieve\n"
" by handling the XDP stage before netstack stage.\n";

#include <assert.h>
#include <errno.h>
Expand Down

0 comments on commit ea20160

Please sign in to comment.