]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: ignore duplicate merge hints from FW
authorYinjun Zhang <yinjun.zhang@corigine.com>
Tue, 30 Mar 2021 08:30:23 +0000 (10:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Mar 2021 23:58:03 +0000 (16:58 -0700)
commit2ea538dbee1c79f6f6c24a6f2f82986e4b7ccb78
treecca505beebeca223d974e15f9daad6508f17aa05
parent9adc89af724f12a03b47099cd943ed54e877cd59
nfp: flower: ignore duplicate merge hints from FW

A merge hint message needs some time to process before the merged
flow actually reaches the firmware, during which we may get duplicate
merge hints if there're more than one packet that hit the pre-merged
flow. And processing duplicate merge hints will cost extra host_ctx's
which are a limited resource.

Avoid the duplicate merge by using hash table to store the sub_flows
to be merged.

Fixes: 8af56f40e53b ("nfp: flower: offload merge flows")
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/main.h
drivers/net/ethernet/netronome/nfp/flower/metadata.c
drivers/net/ethernet/netronome/nfp/flower/offload.c