]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sfxge(4): distinguish filters for encapsulated packets
authorAndrew Rybchenko <arybchik@FreeBSD.org>
Thu, 29 Nov 2018 06:42:38 +0000 (06:42 +0000)
committerAndrew Rybchenko <arybchik@FreeBSD.org>
Thu, 29 Nov 2018 06:42:38 +0000 (06:42 +0000)
commit9d5aae27058aa21e3b7ea5bbf314ea6466f7fefc
tree2f335877c837d33db1c086457e8337410abb5a6a
parentaab1bcb4381a66848e19fcb5b1f1c3b9f9ae9d7e
sfxge(4): distinguish filters for encapsulated packets

Add filter match flag to distinguish filters applied only to
encapsulated packets.

Match flags set should allow to determine whether a filter
is supported or not. The problem is that if specification
has supported set outer match flags and specified
encapsulation without any inner flags, check says that it
is supported, and filter insertion is performed. However,
there is no filtering of the encapsulated traffic. A new
flag is added to solve this problem and separate the
filters for the encapsulated packets.

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