]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r338489:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 10 Sep 2018 08:03:52 +0000 (08:03 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 10 Sep 2018 08:03:52 +0000 (08:03 +0000)
commit672c8d709bf0f6dcf8731104bb2cd763bef1ae65
tree0f0245e0654ba3f9e32fceb2270fa92e1723f64a
parentd8e94ab6505b35272496ebec1e38394cf07f4db4
MFC r338489:
Maximum number of mbuf frags is off-by-one for worst case scenario in mlx5en(4).

Inspecting the PRM no more than 0x3F data segments, DS, of size 16 bytes is
allowed.

Worst case scenario summary of DS usage:
Header is fixed: 2 DS
Maximum inlining: 98 => (98 - 2) / 16 = 6 DS
Remainder: 0x3F - 2 - 6 = 55 DS (mbuf frags)

Previously a value of 56 DS was used and this would work in the
normal case because not all inline data area was used up.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@338549 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/mlx5/mlx5_en/en.h