]> git.karo-electronics.de Git - karo-tx-linux.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)
commit2d3d4ec01641148636f8961ccd64308dbf2072f4
tree7cb5f207f974e8b320b038f38d7cb28b858fbeaf
parent2b368b234ec43abbf46f2983478c438d36e58134
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