]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Merge branch 'mlxsw-Rework-matchall-offloading-plumbing'
authorDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2020 19:43:30 +0000 (12:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2020 19:43:30 +0000 (12:43 -0700)
commit19f1f467bc5e9874ade015374d8f11a14abb2b3a
tree06e7302af0363a6fad38f8033b7d131fda44dbf8
parent6488f11f39cfaefae3f924867d78cbea747dc59e
parent075c8aa79d541ea08c67a2e6d955f6457e98c21c
Merge branch 'mlxsw-Rework-matchall-offloading-plumbing'

Ido Schimmel says:

====================
mlxsw: Rework matchall offloading plumbing

Jiri says:

Currently the matchall and flower are handled by registering separate
callbacks in mlxsw. That leads to faulty indication "in_hw_count 2" in
filter show command for every inserted flower filter. That happens
because matchall callback just blindly returns 0 for it and it is
wrongly accounted for as "the offloader".

I inspected different ways to fix this problem. The only clean solution
is to rework handling of matchall in mlxsw a bit. The driver newely
registers one callback for bound block which is called for both matchall
and flower filter insertions.

On the way, iron out the matchall code a bit, push it into a separate
file etc.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>