]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: suppress MCDI errors from ARFS
authorEdward Cree <ecree@solarflare.com>
Fri, 22 Nov 2019 17:57:19 +0000 (17:57 +0000)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 23 Nov 2019 01:50:52 +0000 (17:50 -0800)
commite855b3d5913f1ae65503f956289a44cf234621ff
tree6f0fec22548639631dd3d7fbf6f46f81e2c49b28
parent8180cd6cbb9528cd076453a65d87dfe91fa03b83
sfc: suppress MCDI errors from ARFS

In high connection count usage, the NIC's filter table may be filled with
 sufficiently many ARFS filters that further insertions fail.  As this
 does not represent a correctness issue, do not log the resulting MCDI
 errors.  Add a debug-level message under the (by default disabled)
 rx_status category instead; and take the opportunity to do a little extra
 expiry work.

Since there are now multiple workitems able to call __efx_filter_rfs_expire
 on a given channel, it is possible for them to race and thus pass quotas
 which, combined, exceed rfs_filter_count.  Thus, don't WARN_ON if we loop
 all the way around the table with quota left over.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Tested-by: David Ahern <dahern@digitalocean.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/rx.c