]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r351105, r351107: Limit memory window usage in ntb_transport to 256MB.
authorAlexander Motin <mav@FreeBSD.org>
Tue, 27 Aug 2019 04:16:42 +0000 (04:16 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Tue, 27 Aug 2019 04:16:42 +0000 (04:16 +0000)
commitb5a2f5409e0876afc50e8a08a28fadaa3082c010
treef15b51e4e7806970e136f1dfd11f61f712d08a67
parent1b64722f28618a5e5ae6a88eced23cc1fba7c4ec
MFC r351105, r351107: Limit memory window usage in ntb_transport to 256MB.

This adds safety net for the case of misconfigured NTB with too big
memory window, for which we may be unable to allocate a memory buffer,
which does not make much sense for the network interface.  While there,
fix the code to really work with asymmetric window sizes setup.

This makes driver just print warning message on boot instead of hanging
if too large memory window is configured.
share/man/man4/ntb_transport.4
sys/dev/ntb/ntb_transport.c