mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCHv2] pktgen: Convert return type of process_ipsec to bool
       [not found] <1432785621-30921-1-git-send-email-xerofoify@gmail.com>
@ 2015-05-28  4:08 ` Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2015-05-28  4:08 UTC (permalink / raw)
  To: Nicholas Krause
  Cc: davem, brouer, edumazet, ast, stephen, fabf, sd, netdev, linux-kernel

On Thu, 2015-05-28 at 00:00 -0400, Nicholas Krause wrote:
> This converts the function, process_ipsec to the 
> return type of bool due to only returning either
> one or zero.
> v2
> Change incorrect patch subject and make commit message
> clearer
> 
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---

The V2 changelog delta goes here below the --- line
Not in the commit message area.

TrySend a v3
>  net/core/pktgen.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/net/core/pktgen.c b/net/core/pktgen.c
> index 508155b..33bdb76 100644
> --- a/net/core/pktgen.c
> +++ b/net/core/pktgen.c
> @@ -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)
>  {
>  	if (pkt_dev->flags & F_IPSEC_ON) {
> @@ -2626,10 +2626,10 @@ static int process_ipsec(struct pktgen_dev *pkt_dev,
>  			ip_send_check(iph);
>  		}
>  	}
> -	return 1;
> +	return true;
>  err:
>  	kfree_skb(skb);
> -	return 0;
> +	return false;
>  }
>  #endif
>  




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-28  4:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1432785621-30921-1-git-send-email-xerofoify@gmail.com>
2015-05-28  4:08 ` [PATCHv2] pktgen: Convert return type of process_ipsec to bool Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome