]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Optimize updating for OvS flow_stats.
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Tue, 18 Jul 2017 06:28:05 +0000 (23:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jul 2017 20:49:39 +0000 (13:49 -0700)
commit53dccab32ed7fbdd61d04a22c185a34b6cf2ae31
tree7974676b06abaa42d1553bc18fab5d9ec430a3b2
parent9828a251c2277133a80ff174f6c035b583bdc21f
openvswitch: Optimize updating for OvS flow_stats.

In the ovs_flow_stats_update(), we only use the node
var to alloc flow_stats struct. But this is not a
common case, it is unnecessary to call the numa_node_id()
everytime. This patch is not a bugfix, but there maybe
a small increase.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow.c