lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 20 Jun 2013 22:20:28 +0900
From:	Simon Horman <horms@...ge.net.au>
To:	Julian Anastasov <ja@....bg>
Cc:	Alexander Frolkin <avf@...amar.org.uk>, lvs-devel@...r.kernel.org,
	Wensong Zhang <wensong@...ux-vs.org>, netdev@...r.kernel.org,
	lvs-users@...uxvirtualserver.org
Subject: Re: [PATCH] ipvsadm: support for scheduler flags

On Wed, Jun 19, 2013 at 11:05:00PM +0300, Julian Anastasov wrote:
> 
> 	Hello,
> 
> On Wed, 19 Jun 2013, Alexander Frolkin wrote:
> 
> > This patch adds support for scheduler flags, necessary to make use of
> > the "SH fallback and L4 hashing" kernel patch.
> > 
> > The flags are set per service (so using -A or -E) using -b <flags> or
> > --sched-flags <flags>.  <flags> is a comma-separated list of scheduler
> > flags.  The currently supported flags are sh-port, sh-fallback, and
> > generic flag-1, flag-2, flag-3 for future-proofing.
> > 
> > This patch will work with older versions of IPVS, although setting the
> > flags will have no effect.
> > 
> > Signed-off-by: Alexander Frolkin <avf@...amar.org.uk>
> 
> 	Change looks correct:
> 
> Acked-by: Julian Anastasov <ja@....bg>
> 
> 	but we forgot some minor issues, see below...
> 
> > @@ -426,9 +429,12 @@ parse_options(int argc, char **argv, struct ipvs_command_entry *ce,
> >  		{ "ops", 'o', POPT_ARG_NONE, NULL, 'o', NULL, NULL },
> >  		{ "pe", '\0', POPT_ARG_STRING, &optarg, TAG_PERSISTENCE_ENGINE,
> >  		  NULL, NULL },
> > +		{ "sched-flags", 'b', POPT_ARG_STRING, &optarg, 'b', NULL, NULL },
> 
> 	You have to split this long line
> 
> > @@ -656,6 +662,10 @@ parse_options(int argc, char **argv, struct ipvs_command_entry *ce,
> >  			set_option(options, OPT_PERSISTENCE_ENGINE);
> >  			strncpy(ce->svc.pe_name, optarg, IP_VS_PENAME_MAXLEN);
> >  			break;
> > +		case 'b':
> > +			set_option(options, OPT_SCHED_FLAGS);
> > +			snprintf(sched_flags_arg, sizeof(sched_flags_arg), "%s", optarg);
> 
> 	This too
> 
> > +static void print_sched_flags(ipvs_service_entry_t *se) {
> 
> {	<<< start func on new line
> 
> 	checkpatch.pl shows also this one:
> 
> ERROR: spaces required around that '=' (ctx:VxV)
> #121: FILE: ipvsadm.c:369:
> +       char *optarg=NULL, sched_flags_arg[128];
>                     ^
> 	May be you can send a fixed version to Simon.

Yes, please do.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ