sfxge(4): fix GET_RXDP_CONFIG usage for multi-PF on Medford
authorarybchik <arybchik@FreeBSD.org>
Wed, 28 Dec 2016 17:50:48 +0000 (17:50 +0000)
committerarybchik <arybchik@FreeBSD.org>
Wed, 28 Dec 2016 17:50:48 +0000 (17:50 +0000)
commit31d7dd5372a53fa12bed202fbc7188647f141716
treefd4f091a30bc18ce116329811bb106f1602e6651
parent9602dbf4c3a96c382d196a8f65aa338bbfb28826
sfxge(4): fix GET_RXDP_CONFIG usage for multi-PF on Medford

On Medford, using MC_CMD_GET_RXDP_CONFIG to query the RX end
padding setting is in the ADMIN group, and so fails for
unprivileged functions. In that case, assume the largest size
supported by Medford hardware (256bytes) to prevent overrun.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision:  https://reviews.freebsd.org/D8933
sys/dev/sfxge/common/medford_nic.c