]> git.baikalelectronics.ru Git - kernel.git/commit
net: switchdev: don't abort unsupported operations
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 10 Jul 2015 23:48:58 +0000 (19:48 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Jul 2015 04:29:55 +0000 (21:29 -0700)
commit7ea78d1980d51899b034b8cfc3abb04a94d1fde1
treec3de5eb5e5eac625aab00c7bb23b885b6b6eb244
parent921b6b126643bb46be5e75e4a98c0a2b2f855734
net: switchdev: don't abort unsupported operations

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.didelot@savoirfairelinux.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/switchdev/switchdev.c