]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r310816
authorarybchik <arybchik@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 6 Jan 2017 07:29:54 +0000 (07:29 +0000)
committerarybchik <arybchik@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 6 Jan 2017 07:29:54 +0000 (07:29 +0000)
commit3245a2c19276466734912fd44d28b14b05983949
tree5f904e110558c6729d0e00e3db997c941d3a633e
parent957e92366cb5cc9cc1b42faf231953ab543f283b
MFC r310816

sfxge(4): fix efx_filter_supported_filters API

The previous API had various problems, including the length of the
caller provided buffer not being specified, no means being available
to discover how big the buffer needs to be, and a lack of clarity of
what the resulting list contains.

To fix it:
- add the buffer length as a parameter
- if the provided buffer is too short, fail with ENOSPC and return the
  required length
- ensure that the list contents are valid and add comments
  describing it

It is safe to change this API as, unsuprisingly, it has no users.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@311494 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sfxge/common/ef10_filter.c
sys/dev/sfxge/common/ef10_impl.h
sys/dev/sfxge/common/efx.h
sys/dev/sfxge/common/efx_filter.c
sys/dev/sfxge/common/efx_impl.h