Commit 26d25c0
committed
experiment01-tailgrow: try recommentation but it fails
This shows the code after Daniel's idea for change in PR #123
The code can now pass the verifier checks, but it will drop
all packets, because the offset is the packet lenght and
doing +1 will put us over the packet lenght. Thus, the
if-check against data_end will cause a XDP_DROP.
The +1 is needed to pass the verifier checks.
Using XDP_DROP for this case, to make it easier to identify
the problem via using xdpdump[1]
./xdpdump -v -i mlx5p1 --rx-capture entry,exit -x
[1] https://github.com/xdp-project/xdp-tools/tree/master/xdp-dump
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>1 parent 0bbd18c commit 26d25c0
1 file changed
Lines changed: 11 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 19 | | |
28 | 20 | | |
29 | 21 | | |
| 22 | + | |
30 | 23 | | |
31 | | - | |
32 | | - | |
| 24 | + | |
33 | 25 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 26 | + | |
| 27 | + | |
40 | 28 | | |
41 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
42 | 33 | | |
43 | 34 | | |
44 | | - | |
| 35 | + | |
45 | 36 | | |
46 | 37 | | |
0 commit comments