]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sfxge(4): rename API to check Rx scale and hash support
authorAndrew Rybchenko <arybchik@FreeBSD.org>
Fri, 23 Nov 2018 09:15:20 +0000 (09:15 +0000)
committerAndrew Rybchenko <arybchik@FreeBSD.org>
Fri, 23 Nov 2018 09:15:20 +0000 (09:15 +0000)
commit39023729c38807cc2a79d8fb6abdc2c3d71658bb
treeabc1878f721403c5f6712190443caebb199444b3
parent7283cea3c50850c58212df2806ccc0b1394d1a7d
sfxge(4): rename API to check Rx scale and hash support

Rename efx_rx_scale_support_get() to efx_rx_scale_default_support_get(),
and efx_rx_hash_support_get() to efx_rx_hash_default_support_get().

All these really report is whether an exclusive RSS context was
successfully acquired at efx_rx_init().

efx_rx_scale_support_get() sounds like it reports whether the device
supports RSS, and whether exclusive or shared contexts are supported,
but it doesn't do that. Renaming it to
efx_rx_scale_default_support_get() helps to reflect that it reports
what RSS support the client gets without trying to allocate RSS
contexts itself.

Also rename efx_rx_scale_support_t to efx_rx_scale_context_type_t, to
make the enum more suitable for specifying the type of an RSS context
to be allocated.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Differential Revision:  https://reviews.freebsd.org/D18078
sys/dev/sfxge/common/ef10_rx.c
sys/dev/sfxge/common/efx.h
sys/dev/sfxge/common/efx_impl.h
sys/dev/sfxge/common/efx_rx.c