diff mbox series

[ovs-dev] 回复: [PATCH net-next v6 1/1] net:openvswitch:reduce cpu_used_mask memory

Message ID TYWP286MB2300B4C2129A6F2157967BBDF5D79@TYWP286MB2300.JPNP286.PROD.OUTLOOK.COM
State Not Applicable
Headers show
Series [ovs-dev] 回复: [PATCH net-next v6 1/1] net:openvswitch:reduce cpu_used_mask memory | expand

Checks

Context Check Description
ovsrobot/intel-ovs-compilation fail test: fail

Commit Message

缘 陶 Feb. 3, 2023, 1:06 p.m. UTC
Hi, Eelco:

      I almost missed this mail, i see your point - aggregating the code for the initialization of sw_flow
I am good with this revision, will incorporate in v7.

Jiri, though i hoped that V6 is the last one, till I saw this mail, i will wait a couple of hours before making the next last submission

thanks
eddy
diff mbox series

Patch

diff --git a/net/openvswitch/flow_table.c b/net/openvswitch/flow_table.c
index dc6a174c3194..791504b7f42b 100644
--- a/net/openvswitch/flow_table.c
+++ b/net/openvswitch/flow_table.c
@@ -79,6 +79,7 @@  struct sw_flow *ovs_flow_alloc(void)
                return ERR_PTR(-ENOMEM);

        flow->stats_last_writer = -1;
+       flow->cpu_used_mask = (struct cpumask *)&flow->stats[nr_cpu_ids];

        /* Initialize the default stat node. */
        stats = kmem_cache_alloc_node(flow_stats_cache,
@@ -87,7 +88,6 @@  struct sw_flow *ovs_flow_alloc(void)
        if (!stats)
                goto err;

-       flow->cpu_used_mask = (struct cpumask *)&flow->stats[nr_cpu_ids];
        spin_lock_init(&stats->lock);

>        spin_lock_init(&stats->lock);