OSDN Git Service

openvswitch: move key and ovs_cb update out of handle_fragments
authorXin Long <lucien.xin@gmail.com>
Tue, 7 Feb 2023 22:52:08 +0000 (17:52 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Feb 2023 00:23:03 +0000 (16:23 -0800)
commit1b83bf4489cbc47d88976291cc967a17adb8e118
tree85ce47b7e66277c1b5f727cb9368e1433805b18f
parent67fc5d7ffbd4f9cf52adf166f5bc9a35fef37f24
openvswitch: move key and ovs_cb update out of handle_fragments

This patch has no functional changes and just moves key and ovs_cb update
out of handle_fragments, and skb_clear_hash() and skb->ignore_df change
into handle_fragments(), to make it easier to move the duplicate code
from handle_fragments() into nf_conntrack_ovs later.

Note that it changes to pass info->family to handle_fragments() instead
of key for the packet type check, as info->family is set according to
key->eth.type in ovs_ct_copy_action() when creating the action.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/openvswitch/conntrack.c