HomeFreeBSD

MFC r341583:

Description

MFC r341583:
mlx5en: Statically allocate and free the channel structure(s).

By allocating the worst case size channel structure array
at attach time we can eliminate various NULL checks in the
fast path. And also reduce the chance for use-after-free
issues in the transmit fast path.

This change is also a requirement for implementing
backpressure support.

Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS341978: MFC r341583:
Branches
Unknown
Tags
Unknown