]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdee8b42ad45127db925d578f9e8c5e75c9a3d588
tree8fe44e945ad58dc052c5bb31966ce6b1c13603eb
parentc7dc38c68aeeb042d4b22ef1983e463411dd6e85
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