Skip to content
Snippets Groups Projects
Commit d88eb376 authored by Anas Sayed's avatar Anas Sayed Committed by Roman Azarenko
Browse files

Preserve priority & extra_mark when offloading

parent 9f1c36ae
Branches
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment