tc: remove unused redirect ttl
Subsystems (3)
PATCH v2 1/1 tc: remove unused redirect ttl
improves ingress+u32 performance from 22.4 Mpps to 22.9 Mpps
---
The code is from Jamal. I only did testing and benchmarking.
V1->V2: missed removal of unused 'dev' variable.
include/uapi/linux/pkt_cls.h | 2 ++ net/core/dev.c | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-)
include/uapi/linux/pkt_cls.h +2 -0
@@ -62,11 +62,13 @@ bits 9,10,11: redirect counter - redirect TTL. Loop avoidance#define SET_TC_NCLS (v) ( TC_NCLS | (v & ~TC_NCLS))#define CLR_TC_NCLS (v) ( v & ~TC_NCLS) +#ifndef __KERNEL__#define S_TC_RTTL _TC_MAKE32(9)#define M_TC_RTTL _TC_MAKEMASK(3,S_TC_RTTL)#define G_TC_RTTL (x) _TC_GETVALUE(x,S_TC_RTTL,M_TC_RTTL)#define V_TC_RTTL (x) _TC_MAKEVALUE(x,S_TC_RTTL)#define SET_TC_RTTL (v,n) ((V_TC_RTTL(n)) | (v & ~M_TC_RTTL)) +#endif #define S_TC_AT _TC_MAKE32(12)#define M_TC_AT _TC_MAKEMASK(2,S_TC_AT)
net/core/dev.c +0 -9
@@ -3531,18 +3531,9 @@ EXPORT_SYMBOL_GPL(br_fdb_test_addr_hook);*/ static int ing_filter (struct sk_buff *skb,struct netdev_queue *rxq) { -struct net_device *dev = skb->dev; -u32 ttl =G_TC_RTTL (skb->tc_verd);int result =TC_ACT_OK ;struct Qdisc *q; -if (unlikely (MAX_RED_LOOP < ttl++)) { -net_warn_ratelimited ("Redir loop detected Dropping packet (%d->%d)\n" , - skb->skb_iif, dev->ifindex); -return TC_ACT_SHOT ; - } - - skb->tc_verd =SET_TC_RTTL (skb->tc_verd, ttl); skb->tc_verd =SET_TC_AT (skb->tc_verd,AT_INGRESS ); q =rcu_dereference (rxq->qdisc);
Signature · 1 line
1.7.9.5
Quoted 6 lines · Alexei Starovoitov
improves ingress+u32 performance from 22.4 Mpps to 22.9 Mpps
Signed-off-by Jamal Hadi Salim <[email protected]>Signed-off-by Alexei Starovoitov <[email protected]>---
The code is from Jamal. I only did testing and benchmarking.
I had similar patch, so
Hello.
Quoted 6 lines · Alexei Starovoitov
improves ingress+u32 performance from 22.4 Mpps to 22.9 Mpps
Signed-off-by Jamal Hadi Salim <[email protected]>Signed-off-by Alexei Starovoitov <[email protected]>---
The code is from Jamal. I only did testing and benchmarking.
Then your patch should have had:
From: Jamal Hadi Salim <[email protected]>
before the change log, no?
Quoted 1 line
V1->V2: missed removal of unused 'dev' variable.
[...]
WBR, Sergei
Quoted 11 lines · Sergei Shtylyov
Hello.
Quoted 6 lines · Alexei Starovoitov
improves ingress+u32 performance from 22.4 Mpps to 22.9 Mpps
Signed-off-by Jamal Hadi Salim <[email protected]>Signed-off-by Alexei Starovoitov <[email protected]>---
The code is from Jamal. I only did testing and benchmarking.
Quoted 5 lines
Then your patch should have had:
From: Jamal Hadi Salim <[email protected]>
before the change log, no?
I don't think that's how it works. I've applied Jamal's patch then fixed few minor things. Therefore his SOB is on top and mine below. 'From' has no DCO meaning. It's used from time to time in merge request summary, but that's a different case.
Quoted 7 lines · Alexei Starovoitov
Quoted 6 lines
Quoted 6 lines
improves ingress+u32 performance from 22.4 Mpps to 22.9 Mpps
Signed-off-by Jamal Hadi Salim <[email protected]>Signed-off-by Alexei Starovoitov <[email protected]>---
The code is from Jamal. I only did testing and benchmarking.
Quoted 8 lines
Quoted 5 lines
Then your patch should have had:
From: Jamal Hadi Salim <[email protected]>
before the change log, no?
I don't think that's how it works. I've applied Jamal's patch then fixed few minor things.
You just said "I only did testing and benchmarking." :-)
Quoted 2 lines
Therefore his SOB is on top and
mine below. 'From' has no DCO meaning.
Sorry, I don't know what DCO is, at least not in this context. :-)
Quoted 2 lines
It's used from time to time
in merge request summary, but that's a different case.
I'm sure it's also used when you're submitting someone other's patches.
WBR, Sergei
Quoted 4 lines · Alexei Starovoitov
I don't think that's how it works. I've applied Jamal's patch then fixed few minor things. Therefore his SOB is on top and mine below. 'From' has no DCO meaning. It's used from time to time in merge request summary, but that's a different case.
Quote from Documentation/SubmittingPatches:
"
The "from" line must be the very first line in the message body, and has the form:
From: Original Author <[email protected]>
The "from" line specifies who will be credited as the author of the patch in the permanent changelog. If the "from" line is missing, then the "From:" line from the email header will be used to determine the patch author in the changelog.
"
You should take a look at how Andrew Morton works when he fixes minor things, I am sure he fixes much more than you do.
David Miller
maintainerFrom: Cong Wang <[email protected]>
Date: Fri, 1 May 2015 13:33:28 -0700
Quoted 14 lines
Quote from
Documentation/SubmittingPatches:"
The "from" line must be the very first line in the message body, and has the form:From: Original Author <[email protected]>
The "from" line specifies who will be credited as the author of the patch in the permanent changelog. If the "from" line is missing, then the "From:" line from the email header will be used to determine the patch author in the changelog.
"
Quoted 3 lines
You should take a look at how Andrew Morton works when he fixes minor things, I am sure he fixes much more than you do.
+1
Quoted 17 lines · David Miller
From: Cong Wang <[email protected]>
Date: Fri, 1 May 2015 13:33:28 -0700Quoted 14 lines
Quote from
Documentation/SubmittingPatches:"
The "from" line must be the very first line in the message body, and has the form:From: Original Author <[email protected]>
The "from" line specifies who will be credited as the author of the patch in the permanent changelog. If the "from" line is missing, then the "From:" line from the email header will be used to determine the patch author in the changelog.
"
Quoted 6 lines
Quoted 3 lines
You should take a look at how Andrew Morton works when he fixes minor things, I am sure he fixes much more than you do.
+1
Dave, please help me understand the rules here.
Jamal gave me untested patch that had 8 lines deleted and said "untested... to push it please go ahead."
I've removed one more line and added 2 extra.
My understanding is that 'From' applies to 100% authorship, no? If no, where is the line?
I've seen people adding 'joint work' line and add sobs in order of contribution % where the guy who sends it to the list is the last sob, right?
Or any follow up work that based even on 10% of initial patch should have 'from' of the first author? That doesn't sound right.
David Miller
maintainerFrom: Alexei Starovoitov <[email protected]>
Date: Fri, 01 May 2015 20:15:49 -0700
Quoted 18 lines · David Miller
Quoted 17 lines
From: Cong Wang <[email protected]>
Date: Fri, 1 May 2015 13:33:28 -0700Quoted 14 lines
Quote from
Documentation/SubmittingPatches:"
The "from" line must be the very first line in the message body, and has the form:From: Original Author <[email protected]>
The "from" line specifies who will be credited as the author of the patch in the permanent changelog. If the "from" line is missing, then the "From:" line from the email header will be used to determine the patch author in the changelog.
"
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
You should take a look at how Andrew Morton works when he fixes minor things, I am sure he fixes much more than you do.
+1
Dave, please help me understand the rules here.
If Jamal wrote the patch and you made some modifications it's still his his patch so he gets authorship.
Who are you, Napoleon?
Quoted 3 lines · David Miller
If Jamal wrote the patch and you made some modifications it's still his his patch so he gets authorship.
ok. no problem.
Quoted 1 line
Who are you, Napoleon?
is it a joke? If it is, it's a bad one.
I simply asked what are the rules for 'from' tag. I don't care a single bit who gets the authorship.
Everyone on this list is looking at you as a model of behavior. Let's keep it technical.
Quoted 4 lines · Alexei Starovoitov
improves ingress+u32 performance from 22.4 Mpps to 22.9 Mpps
Signed-off-by Jamal Hadi Salim <[email protected]>Signed-off-by Alexei Starovoitov <[email protected]>