aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorNikolay Aleksandrov <[email protected]>2015-11-13 14:54:01 +0100
committerDavid S. Miller <[email protected]>2015-11-16 14:56:03 -0500
commit5f8dc33e8ee7e59bee3bc6dc2088807a384b285a (patch)
tree9852b51304efc0a52a71579bc47c2d4039c6fe26 /tools/perf/util/trace-event-scripting.c
parentbbe14f54297467ddb23b7d1db564a2468c6ae151 (diff)
net: fix feature changes on devices without ndo_set_features
When __netdev_update_features() was updated to ensure some features are disabled on new lower devices, an error was introduced for devices which don't have the ndo_set_features() method set. Before we'll just set the new features, but now we return an error and don't set them. Fix this by returning the old behaviour and setting err to 0 when ndo_set_features is not present. Fixes: e7868a85e1b2 ("net/core: ensure features get disabled on new lower devs") CC: Jarod Wilson <[email protected]> CC: Jiri Pirko <[email protected]> CC: Ido Schimmel <[email protected]> CC: Sander Eikelenboom <[email protected]> CC: Andy Gospodarek <[email protected]> CC: Florian Fainelli <[email protected]> Signed-off-by: Nikolay Aleksandrov <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Reviewed-by: Andy Gospodarek <[email protected]> Reviewed-by: Jarod Wilson <[email protected]> Tested-by: Florian Fainelli <[email protected]> Tested-by: Dave Young <[email protected]> Tested-by: Christian Borntraeger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions