net/sfc/base: insert filters for encapsulated packets
authorMark Spender <mspender@solarflare.com>
Mon, 28 Aug 2017 13:25:27 +0000 (14:25 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:47 +0000 (02:49 +0200)
commit70259cbbe3951db7e4d93e0991860c9082ec3828
treef4599d2eeb83ff104b5671ffc04b935a7637227b
parent457beb2c4d3e3e4ee16e743d54189b2c7316b47d
net/sfc/base: insert filters for encapsulated packets

On Medford, with full-featured firmware running, encapsulated
packets may not be delivered unless filters are inserted for
them, as ordinary filters are not applied to encapsulated
packets. So filters for encapsulated packets need to be
inserted for each class of encapsulated packet. For simplicity,
catch-all filters are always inserted. These may match more
packets than the OS has asked for, but trying to insert more
precise filters increases complexity for little gain.

Signed-off-by: Mark Spender <mspender@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andrew Lee <alee@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@solarflare.com>
drivers/net/sfc/base/ef10_filter.c
drivers/net/sfc/base/ef10_impl.h