Re: [PATCH] net: switchdev: fix return code of fdb_dump stub

2015-11-16 Thread David Miller
From: Dragos Tatulea Date: Mon, 16 Nov 2015 10:52:48 +0100 > rtnl_fdb_dump always expects an index to be returned by the ndo_fdb_dump op, > but when CONFIG_NET_SWITCHDEV is off, it returns an error. > > Fix that by returning the given unmodified idx. > > A similar fix was

[PATCH] net: switchdev: fix return code of fdb_dump stub

2015-11-16 Thread Dragos Tatulea
rtnl_fdb_dump always expects an index to be returned by the ndo_fdb_dump op, but when CONFIG_NET_SWITCHDEV is off, it returns an error. Fix that by returning the given unmodified idx. A similar fix was 0890cf6cb6ab ("switchdev: fix return value of switchdev_port_fdb_dump in case of error") but

Re: [PATCH] net: switchdev: fix return code of fdb_dump stub

2015-11-16 Thread Jiri Pirko
Mon, Nov 16, 2015 at 10:52:48AM CET, dra...@endocode.com wrote: >rtnl_fdb_dump always expects an index to be returned by the ndo_fdb_dump op, >but when CONFIG_NET_SWITCHDEV is off, it returns an error. > >Fix that by returning the given unmodified idx. > >A similar fix was 0890cf6cb6ab