]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: fixes to filter restore handling
authorJon Cooper <jcooper@solarflare.com>
Fri, 27 Jan 2017 15:02:11 +0000 (15:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jan 2017 16:59:30 +0000 (11:59 -0500)
commit7ed0e8d8d97fe3ed98e02a3b03641608b3a1d3ee
tree7cb5f207f974e8b320b038f38d7cb28b858fbeaf
parent5a909cd5c7f054ecdbeb0cf197f86455069cfb4f
sfc: fixes to filter restore handling

If the NIC is switched from full-featured to low-latency, encapsulated
 filters are no longer available, and this causes errors. This patch
 removes those filters from the filter table on restore.
Also, if filters which are removed by the above, or which we fail to
 insert when restoring filters, were UC, MC or broadcast default
 filters, invalidate the corresponding vlan->default_filters entry.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c