Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bcmlinux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Broadcom
bcmlinux
Commits
d88eb376
Commit
d88eb376
authored
4 years ago
by
Anas Sayed
Committed by
Roman Azarenko
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Preserve priority & extra_mark when offloading
parent
9f1c36ae
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
net/netfilter/nf_flow_table_core.c
+6
-0
6 additions, 0 deletions
net/netfilter/nf_flow_table_core.c
with
6 additions
and
0 deletions
net/netfilter/nf_flow_table_core.c
+
6
−
0
View file @
d88eb376
...
...
@@ -21,6 +21,8 @@ struct flow_offload_entry {
struct
rcu_head
rcu_head
;
/* Added for fwmark tracking */
__u32
mark
;
__u32
priority
;
__u32
extra_mark
[
1
];
__u8
dsfield
;
};
...
...
@@ -87,6 +89,8 @@ flow_offload_alloc(struct nf_conn *ct, struct nf_flow_route *route, struct sk_bu
entry
->
ct
=
ct
;
/* store skbmark ~@ND_Iain */
entry
->
mark
=
skb
->
mark
;
entry
->
extra_mark
[
0
]
=
skb
->
extra_mark
[
0
];
entry
->
priority
=
skb
->
priority
;
/* store dsfield */
if
(
entry
->
ct
)
{
switch
(
nf_ct_l3num
(
entry
->
ct
))
{
...
...
@@ -184,6 +188,8 @@ void nf_flow_table_acct(struct flow_offload *flow, struct sk_buff *skb, int dir)
/* restore fwmark ~@ND_Iain */
skb
->
mark
=
entry
->
mark
;
skb
->
extra_mark
[
0
]
=
entry
->
extra_mark
[
0
];
skb
->
priority
=
entry
->
priority
;
/* store dsfield */
if
(
entry
->
ct
)
{
switch
(
nf_ct_l3num
(
entry
->
ct
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment