[PATCH 1/1] sctp: do not update t->pathmtu when PMTUD is disabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Transport pathmtu can not be updated, when PMTUD is disabled
and pathmtu is condigured as fixed. Unconditional update t->pathmtu
will result in overwriting parameter configured by user
and lack of GSO usage.

Signed-off-by: Jacek Szafraniec <jacek.szafraniec@xxxxxxxxx>
---
 include/net/sctp/sctp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index 2c6570e..0569956 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -612,7 +612,7 @@ static inline bool sctp_transport_pmtu_check(struct sctp_transport *t)
 {
 	__u32 pmtu = sctp_dst_mtu(t->dst);
 
-	if (t->pathmtu == pmtu)
+	if (t->pathmtu == pmtu || t->param_flags & SPP_PMTUD_DISABLE)
 		return true;
 
 	t->pathmtu = pmtu;
-- 
2.10.2




[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     SCTP

  Powered by Linux