Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6282f4d authored by Gerrit Renker's avatar Gerrit Renker Committed by David S. Miller
Browse files

[DCCP]: Warn when discarding packet due to internal errors



This adds a (debug) warning message which is triggered whenever a packet is
discarded due to send failure.

It also adds a conditional, so that an interruption during dccp_wait_for_ccid
is not treated as a `BUG': the rationale is that interruptions are external,
whereas bug warnings are concerned with the internals.

Signed-off-by: default avatarGerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: default avatarIan McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@mandriva.com>
parent bf58a381
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -241,7 +241,7 @@ void dccp_write_xmit(struct sock *sk, int block)
				break;
			} else
				err = dccp_wait_for_ccid(sk, skb);
			if (err)
			if (err && err != -EINTR)
				DCCP_BUG("err=%d after dccp_wait_for_ccid", err);
		}

@@ -267,10 +267,12 @@ void dccp_write_xmit(struct sock *sk, int block)
			if (err)
				DCCP_BUG("err=%d after ccid_hc_tx_packet_sent",
					 err);
		} else
		} else {
			dccp_pr_debug("packet discarded\n");
			kfree(skb);
		}
	}
}

int dccp_retransmit_skb(struct sock *sk, struct sk_buff *skb)
{