]> git.baikalelectronics.ru Git - kernel.git/commit
net: openvswitch: select vport upcall portid directly
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Wed, 6 Nov 2019 16:34:28 +0000 (00:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:25:19 +0000 (21:25 -0800)
commit67e88053a8a37e51f2dc02e3dc5ee0d49fc2ff59
tree36cd9844870e57a7c3dcb9862ade31286dba151f
parent9af0bd91b95894b85ab990c3e905c88805e3cc79
net: openvswitch: select vport upcall portid directly

The commit 69c51582ff786 ("dpif-netlink: don't allocate per
thread netlink sockets"), in Open vSwitch ovs-vswitchd, has
changed the number of allocated sockets to just one per port
by moving the socket array from a per handler structure to
a per datapath one. In the kernel datapath, a vport will have
only one socket in most case, if so select it directly in
fast-path.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport.c