On Thu, Apr 21, 2016 at 8:01 PM, Wanlong Gao <wanlong....@easystack.cn> wrote: > The build was failing with following error: > > ---- > CC [M] /home/sabyasse/Linux/src/sandbox/ovs_v1/datapath/linux/vport.o > /home/sabyasse/Linux/src/sandbox/ovs_v1/datapath/linux/vport.c: In > function ‘ovs_vport_get_stats’: > /home/sabyasse/Linux/src/sandbox/ovs_v1/datapath/linux/vport.c:328: > error: implicit declaration of function ‘dev_get_stats64’ > ---- > > The issue is fixed by checking for existence of dev_get_stats64 in > netdevice.h and then using it (in C6.7+, 2.6.32-594 kernels). For > previous kernels use compat rpl_dev_get_stats. > > Signed-off-by: Sabyasachi Sengupta <sabyasachi.sengu...@alcatel-lucent.com> > Signed-off-by: Wanlong Gao <wanlong....@easystack.cn>
There is code above this to handle the !HAVE_RTNL_LINK_STATS64 case. Does that not work or can these two be merged together? It also looks like rpl_dev_get_stats() is only defined in that case anyways. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev