HomeFreeBSD

netmap: move buf_size validation code to its own function

Description

netmap: move buf_size validation code to its own function

This code validates the netmap buf_size against the interface MTU
and maximum descriptor size, to make sure the values are consistent.
Moving this functionality to its own function is needed because this
function is also called by Linux-specific code.

MFC after: 3 days

Details

Provenance
vmaffioneAuthored on
Parents
rS342299: netmap: pipes: make sure both ends use the same number of slots
Branches
Unknown
Tags
Unknown