]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Increase I82545_MAX_TXSEGS from 20 to 64 and add checks for it.
authorAlexander Motin <mav@FreeBSD.org>
Sat, 16 Jul 2016 09:08:33 +0000 (09:08 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Sat, 16 Jul 2016 09:08:33 +0000 (09:08 +0000)
commitee7230f4f7bdd8edd2c6b8fc26b639cbf003ec1c
tree9ecd52179a55217cec960a3e204cbecb7093eb19
parentb4bf72213ac4f8be0ea11ed3538373740ff4ca4f
Increase I82545_MAX_TXSEGS from 20 to 64 and add checks for it.

There seems no hard limit on number of segments per packet in the chip,
and 20 appeared insufficient.  Hope 64 will be enough, but if not -- add
check to report that and drop the packet instead of corrupting stack.
usr.sbin/bhyve/Makefile
usr.sbin/bhyve/pci_e82545.c