]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sfc: enable cascaded multicast filters in MCFW
authorDaniel Pieczko <dpieczko@solarflare.com>
Tue, 21 Jul 2015 14:09:18 +0000 (15:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jul 2015 05:21:31 +0000 (22:21 -0700)
commit46e612b0fcefb7a3381933135f386523dedb4159
treef68c95a289d55472664387f5a5b05b2e4a3b8e4c
parenta9196bb048a78936d097600fb47b0b5ab9cc00d5
sfc: enable cascaded multicast filters in MCFW

After creating event queue 0, check to see if the workaround is enabled,
 and enable it if necessary.  This will be called during PCI probe and
 also when coming back up after a reset.  The nic_data->workaround_26807
 will be used in the future to control the filter insertion behaviour
 based on this workaround.

Only the primary PF can enable this workaround, so tolerate an EPERM
 error and continue.  Otherwise, if any step in the checking and enabling
 of the workaround fails, the event queue must be removed.

We check that workaround is implemented before trying to enable it,
 and store the current workaround setting before trying to change it.

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