]> 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)
commit5b2ad38929f2eeef771727a34bdf32b5c615e1dc
tree8fe44e945ad58dc052c5bb31966ce6b1c13603eb
parentce52ba6e969ee8748eb55bcacc7020d059109de5
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