datapath: test for netlink_set_err returning void
authorSimon Horman <simon.horman@netronome.com>
Fri, 27 Nov 2015 06:07:23 +0000 (22:07 -0800)
committerPravin B Shelar <pshelar@ovn.org>
Fri, 29 Jan 2016 03:02:54 +0000 (19:02 -0800)
commit6dbd98e6cad2cc6aced7f8be2cd15b5a5cc3ed47
treeb6809598d828afeaa3ecd6e5407a8d04b25a136b
parent025f69aa62650a911861c48281490e52ae658b94
datapath: test for netlink_set_err returning void

In v2.6.33 netlink_set_err returns void. However, 1a50307ba182 ("netlink:
fix NETLINK_RECV_NO_ENOBUFS in netlink_set_err()") was backported and
included in v2.6.33.2 and in that and subsequent v2.6.33 stable releases
netlink_set_err returns an int.

It seems plausible that there are other backports floating around. So check
for netlink_set_err returning void rather than including compatibility code
based on the version of the kernel.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
acinclude.m4
datapath/linux/compat/include/net/genetlink.h