Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
5b76047f
Commit
5b76047f
authored
Nov 19, 2018
by
sevagh
Committed by
yonghong-song
Nov 19, 2018
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate code from xdp_drop_count.py (#2049)
Also, fix an incorrect indentation in the same block.
parent
62bc2259
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
examples/networking/xdp/xdp_drop_count.py
examples/networking/xdp/xdp_drop_count.py
+1
-10
No files found.
examples/networking/xdp/xdp_drop_count.py
View file @
5b76047f
...
...
@@ -103,16 +103,7 @@ int xdp_prog1(struct CTXTYPE *ctx) {
nh_off += sizeof(struct vlan_hdr);
if (data + nh_off > data_end)
return rc;
h_proto = vhdr->h_vlan_encapsulated_proto;
}
if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) {
struct vlan_hdr *vhdr;
vhdr = data + nh_off;
nh_off += sizeof(struct vlan_hdr);
if (data + nh_off > data_end)
return rc;
h_proto = vhdr->h_vlan_encapsulated_proto;
h_proto = vhdr->h_vlan_encapsulated_proto;
}
if (h_proto == htons(ETH_P_IP))
...
...
Kirill Smelkov
@kirr
mentioned in commit
f3fd8e30
·
Feb 07, 2019
mentioned in commit
f3fd8e30
mentioned in commit f3fd8e30e1a1e4e61c3d206b10bf4fc11ac26dd9
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment