]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove references to CONTIGMALLOC_WORKS in iflib and em
authorerj <erj@FreeBSD.org>
Tue, 5 Mar 2019 19:12:51 +0000 (19:12 +0000)
committererj <erj@FreeBSD.org>
Tue, 5 Mar 2019 19:12:51 +0000 (19:12 +0000)
commit1e482a6c70d67d537b2c2ce669449b118b4b9175
tree5069e10ab22484ac063a904fedd574a966718549
parent20164daec4224f3eb43e3628b0c95997c1bcf48f
Remove references to CONTIGMALLOC_WORKS in iflib and em

From Jake:
"The iflib_fl_setup() function tries to pick various buffer sizes based
on the max_frame_size value defined by the parent driver. However, this
code was wrapped under CONTIGMALLOC_WORKS, which was never actually
defined anywhere.

This same code pattern was used in if_em.c, likely trying to match
what iflib uses.

Since CONTIGMALLOC_WORKS is not defined, remove this dead code from
iflib_fl_setup and if_em.c

Given that various iflib drivers appear to be using a similar
calculation, it might be worth making this buffer size a value that the
driver can peek at in the future."

Submitted by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed by: shurd@
MFC after: 1 week
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D19199
sys/dev/e1000/if_em.c
sys/net/iflib.c