Skip to contentSkip to conversation

pktgen: Convert return type of process_ipsec to bool

PATCH Jesper Dangaard Brouer 1 participant 1 message May 28, 2015 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 19 lines · On Thu, 28 May 2015 00:11:05 -0400 Nicholas Krause <[email protected]> wrote:

This converts the function, process_ipsec to the
return type of bool due to only returning either
one or zero.

---
v3
Move the v2 changes below the sign off line for this patch. v2
Change incorrect patch subject and make commit message clearer

 net/core/pktgen.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
net/core/pktgen.c +0 -0
index 508155b..33bdb76 100644

net/core/pktgen.c static void free_SAs(struct pktgen_dev *pkt_dev) · line 2591

Quoted 6 lines
net/core/pktgen.c +1 -1
@@ -2587,7 +2587,7 @@ static void free_SAs(struct pktgen_dev *pkt_dev)
 	}
 }
 
-static int process_ipsec(struct pktgen_dev *pkt_dev,
+static bool process_ipsec(struct pktgen_dev *pkt_dev,
 			      struct sk_buff *skb, __be16 protocol)

When doing this change, could you please align the above line to the open parenthesis of process_ipsec (even-though it was also misaligned before).

scripts/checkpatch.pl will tell you:
CHECK: Alignment should match open parenthesis

Did anyone tell you that kernel developers nitpick? ;-)

And usually you don't need to Cc the "main" Linux Kernel Mailing List ([email protected]) with a trivial patch like this. Sending it to the network developers should be enough ([email protected]).

Signature · 5 lines
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Sr. Network Kernel Developer at Red Hat
  Author of http://www.iptv-analyzer.org
  LinkedIn: http://www.linkedin.com/in/brouer