datapath: restore OVS_FLOW_CMD_NEW notifications
authorSamuel Gauthier <samuel.gauthier@6wind.com>
Sat, 20 Sep 2014 13:25:23 +0000 (06:25 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Sun, 21 Sep 2014 02:45:51 +0000 (19:45 -0700)
commit114fce23a7f1c48c6bd63e75ef698698c4103c97
tree9698dc9926776ba02e5ca8e13edfc295a5585891
parentf6a0c895fcece5bdf538f3f0afc13275c062b4d6
datapath: restore OVS_FLOW_CMD_NEW notifications

Since commit fb5d1e9e127a ("openvswitch: Build flow cmd netlink reply only if needed."),
the new flows are not notified to the listeners of OVS_FLOW_MCGROUP.

This commit fixes the problem by using the genl function, ie
genl_has_listerners() instead of netlink_has_listeners().

Signed-off-by: Samuel Gauthier <samuel.gauthier@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
acinclude.m4
datapath/datapath.c
datapath/linux/compat/include/net/genetlink.h