]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: reduce action list size by coalescing mangle actions
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Sat, 30 Mar 2019 02:24:41 +0000 (19:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2019 01:05:13 +0000 (18:05 -0700)
commit59764811ee5d8b5e6c0b28fa90fb65dc9d46152f
treed89e8b5db71a19f0a6c9beec5462a32e869f7b5f
parent5dae5be80133f26fa74feedad070bb85a8b1d4a3
nfp: flower: reduce action list size by coalescing mangle actions

With the introduction of flow_action_for_each pedit actions are no
longer grouped together, instead pedit actions are broken out per
32 byte word. This results in an inefficient use of the action list
that is pushed to hardware where each 32 byte word becomes its own
action. Therefore we combine groups of 32 byte word before sending
the action list to hardware.

Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/action.c