nfp: flower: utilize the tuple iifidx in offloading ct flows
authorYinjun Zhang <yinjun.zhang@corigine.com>
Fri, 29 Apr 2022 07:51:24 +0000 (09:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Apr 2022 01:44:46 +0000 (18:44 -0700)
commit7195464cf8f219c4d5e493f07efdd532926c2434
tree8fe44e945ad58dc052c5bb31966ce6b1c13603eb
parent78a9b3c47befde80a4896a8c5172990b60c58af4
nfp: flower: utilize the tuple iifidx in offloading ct flows

The device info from which conntrack originates is stored in metadata
field of the ct flow to offload now, driver can utilize it to reduce
the number of offloaded flows.

v2: Drop inline keyword from get_netdev_from_rule() signature.
    The compiler can decide.

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@corigine.com>
Link: https://lore.kernel.org/r/20220429075124.128589-1-simon.horman@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/flower/conntrack.c