Commit 51ce7ec9 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

garp: retry sending JoinIn messages after allocation failures

Increase reliability by retrying to send JoinIn messages after memory
allocation failures on each TRANSMIT_PDU event until it succeeds.
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9a6d276e
...@@ -323,7 +323,10 @@ static void garp_attr_event(struct garp_applicant *app, ...@@ -323,7 +323,10 @@ static void garp_attr_event(struct garp_applicant *app,
case GARP_ACTION_NONE: case GARP_ACTION_NONE:
break; break;
case GARP_ACTION_S_JOIN_IN: case GARP_ACTION_S_JOIN_IN:
garp_pdu_append_attr(app, attr, GARP_JOIN_IN); /* When appending the attribute fails, don't update state in
* order to retry on next TRANSMIT_PDU event. */
if (garp_pdu_append_attr(app, attr, GARP_JOIN_IN) < 0)
return;
break; break;
case GARP_ACTION_S_LEAVE_EMPTY: case GARP_ACTION_S_LEAVE_EMPTY:
garp_pdu_append_attr(app, attr, GARP_LEAVE_EMPTY); garp_pdu_append_attr(app, attr, GARP_LEAVE_EMPTY);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment