[PATCH] net: switchdev: don't abort unsupported operations

2015-07-11 Thread Vivien Didelot
There is no need to abort attribute setting or object addition, if the prepare phase returned operation not supported. Thus, abort these two transactions only if the error is not -EOPNOTSUPP. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- net/switchdev/switchdev.c | 12

Re: [PATCH] net: switchdev: don't abort unsupported operations

2015-07-11 Thread Jiri Pirko
Sat, Jul 11, 2015 at 01:48:58AM CEST, vivien.dide...@savoirfairelinux.com wrote: There is no need to abort attribute setting or object addition, if the prepare phase returned operation not supported. Thus, abort these two transactions only if the error is not -EOPNOTSUPP. Signed-off-by: Vivien

Re: [PATCH] net: switchdev: don't abort unsupported operations

2015-07-11 Thread Scott Feldman
On Fri, Jul 10, 2015 at 4:48 PM, Vivien Didelot vivien.dide...@savoirfairelinux.com wrote: There is no need to abort attribute setting or object addition, if the prepare phase returned operation not supported. Thus, abort these two transactions only if the error is not -EOPNOTSUPP.

Re: [PATCH] net: switchdev: don't abort unsupported operations

2015-07-11 Thread David Miller
From: Vivien Didelot vivien.dide...@savoirfairelinux.com Date: Fri, 10 Jul 2015 19:48:58 -0400 There is no need to abort attribute setting or object addition, if the prepare phase returned operation not supported. Thus, abort these two transactions only if the error is not -EOPNOTSUPP.