]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sfxge(4): get max supported value for action MARK
authorAndrew Rybchenko <arybchik@FreeBSD.org>
Thu, 29 Nov 2018 06:46:21 +0000 (06:46 +0000)
committerAndrew Rybchenko <arybchik@FreeBSD.org>
Thu, 29 Nov 2018 06:46:21 +0000 (06:46 +0000)
commit5c2f9d6a494a9ed05941788d899d161bdf34c516
tree136a4a9967876673fa178efc691b034cd554f8ee
parentfc9798c79a8288df5afdd84df74f754ba7548d24
sfxge(4): get max supported value for action MARK

The mark value for MATCH_ACTION_MARK has a maximum value.
Requesting a value larger than the maximum will cause the
filter insertion to fail with EINVAL. This patch allows the
driver to check the value at the filter validation.

Submitted by:   Roman Zhukov <roman.zhukov at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
Differential Revision:  https://reviews.freebsd.org/D18240
sys/dev/sfxge/common/ef10_nic.c
sys/dev/sfxge/common/efx.h
sys/dev/sfxge/common/siena_nic.c