* Re: [PATCH] multipath routing algorithm, better patch
[not found] <Pine.GSO.4.61.0506302014160.7400@rac1.wam.umd.edu>
@ 2005-07-01 0:43 ` Patrick McHardy
[not found] ` <42C4919A.5000009@trash.net>
1 sibling, 0 replies; 5+ messages in thread
From: Patrick McHardy @ 2005-07-01 0:43 UTC (permalink / raw)
To: Patrick Jenkins; +Cc: linux-kernel, Maillist netdev
Patrick Jenkins wrote:
> Hi,
>
> The last patch wont work, this should.
>
> This patch assigns the multipath routing algorithm into the fib_info
> struct's fib_mp_alg variable. Previously, the algorithm was always set to
> IP_MP_ALG_NONE which was incorrect. This patch corrects the problem by
> assigning the correct value when a fib_info is initialized.
>
> This patch was tested against kernel 2.6.12.1 for all multipath routing
> algorithms (none, round robin, interface round robin, random, weighted
> random).
Multiple algorithms can be compiled in at once, so this patch is wrong.
mp_alg is supplied by userspace:
if (rta->rta_mp_alg) {
mp_alg = *rta->rta_mp_alg;
if (mp_alg < IP_MP_ALG_NONE ||
mp_alg > IP_MP_ALG_MAX)
goto err_inval;
}
If it isn't set correctly its an iproute problem. Did you actually
experience any problems?
Regards
Patrick
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <42C4919A.5000009@trash.net>]
* Re: [PATCH] multipath routing algorithm, better patch
[not found] ` <42C4919A.5000009@trash.net>
@ 2005-07-01 17:41 ` Thomas Graf
[not found] ` <20050701174117.GW16076@postel.suug.ch>
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Graf @ 2005-07-01 17:41 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Patrick Jenkins, linux-kernel, Maillist netdev
* Patrick McHardy <42C4919A.5000009@trash.net> 2005-07-01 02:43
> Multiple algorithms can be compiled in at once, so this patch is wrong.
> mp_alg is supplied by userspace:
>
> if (rta->rta_mp_alg) {
> mp_alg = *rta->rta_mp_alg;
>
> if (mp_alg < IP_MP_ALG_NONE ||
> mp_alg > IP_MP_ALG_MAX)
> goto err_inval;
> }
>
> If it isn't set correctly its an iproute problem. Did you actually
> experience any problems?
Well, my patch for iproute2 to enable multipath algorithm selection
is currently being merged to Stephen together with the ematch bits.
We had to work out a dependency on GNU flex first (the berkley
version uses the same executable names) so the inclusion was
delayed a bit.
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <20050701174117.GW16076@postel.suug.ch>]
* Re: [PATCH] multipath routing algorithm, better patch
[not found] ` <20050701174117.GW16076@postel.suug.ch>
@ 2005-07-01 19:34 ` Patrick McHardy
[not found] ` <42C59ABA.1070305@trash.net>
1 sibling, 0 replies; 5+ messages in thread
From: Patrick McHardy @ 2005-07-01 19:34 UTC (permalink / raw)
To: Thomas Graf; +Cc: Patrick Jenkins, linux-kernel, Maillist netdev
Thomas Graf wrote:
> * Patrick McHardy <42C4919A.5000009@trash.net> 2005-07-01 02:43
>
>>If it isn't set correctly its an iproute problem. Did you actually
>>experience any problems?
>
> Well, my patch for iproute2 to enable multipath algorithm selection
> is currently being merged to Stephen together with the ematch bits.
> We had to work out a dependency on GNU flex first (the berkley
> version uses the same executable names) so the inclusion was
> delayed a bit.
So its no problem but simply missing support. BTW, do you know if
Stephen's new CVS repository is exported somewhere?
Regards
Patrick
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <42C59ABA.1070305@trash.net>]
* Re: [PATCH] multipath routing algorithm, better patch
@ 2005-07-05 15:17 Patrick Jenkins
0 siblings, 0 replies; 5+ messages in thread
From: Patrick Jenkins @ 2005-07-05 15:17 UTC (permalink / raw)
To: linux-kernel, netdev
>Thomas Graf wrote:
>> * Patrick McHardy <42C4919A.5000009@trash.net> 2005-07-01 02:43
>>
>>>If it isn't set correctly its an iproute problem. Did you actually
>>>experience any problems?
>>
>> Well, my patch for iproute2 to enable multipath algorithm selection
>> is currently being merged to Stephen together with the ematch bits.
>> We had to work out a dependency on GNU flex first (the berkley
>> version uses the same executable names) so the inclusion was
>> delayed a bit.
>
>So its no problem but simply missing support. BTW, do you know if
>Stephen's new CVS repository is exported somewhere?
Yes, we did experience a problem. The routing doesnt work as advertised
(i.e. it wont utilize the multiple routes). Patrick is correct in saying
its missing support.
>From what you are saying it seems the problem will be corrected by a new
feature in iproute2 that allows the user to select this ability. Is this
correct? Also, does this mean my patch is not needed? It seems to me that
it should be supported somehow in the kernel seeing as how everyone might
not utilize iproute2.
Once again, please cc me in the reply because I am not a member of the
list.
Thanks,
Patrick Jenkins
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-07-05 15:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.GSO.4.61.0506302014160.7400@rac1.wam.umd.edu>
2005-07-01 0:43 ` [PATCH] multipath routing algorithm, better patch Patrick McHardy
[not found] ` <42C4919A.5000009@trash.net>
2005-07-01 17:41 ` Thomas Graf
[not found] ` <20050701174117.GW16076@postel.suug.ch>
2005-07-01 19:34 ` Patrick McHardy
[not found] ` <42C59ABA.1070305@trash.net>
2005-07-01 20:46 ` Thomas Graf
2005-07-05 15:17 Patrick Jenkins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox