No longer used by drivers, as transaction queue with item destructors takes care of abort phase internally in switchdev code. So kill it.
Showing the changes to net/switchdev/switchdev.c (1 of 2 files). Show all
Unified · Split
| @@ -248,11 +248,8 @@ int switchdev_port_attr_set(struct net_device *dev, struct switchdev_attr *attr) · 247 unmodified lines | ||
| 248 | 248 | * released. |
| 249 | 249 | */ |
| 250 | 250 | |
| 251 | − if (err != -EOPNOTSUPP) { | |
| 252 | − trans.ph = SWITCHDEV_TRANS_ABORT; | |
| 253 | − __switchdev_port_attr_set(dev, attr, &trans); | |
| 251 | + if (err != -EOPNOTSUPP) | |
| 254 | 252 | switchdev_trans_items_destroy(&trans); |
| 255 | − } | |
| 256 | 253 | |
| 257 | 254 | return err; |
| 258 | 255 | } |
| @@ -334,11 +331,8 @@ int switchdev_port_obj_add(struct net_device *dev, struct switchdev_obj *obj) · 75 unmodified lines | ||
| 334 | 331 | * released. |
| 335 | 332 | */ |
| 336 | 333 | |
| 337 | − if (err != -EOPNOTSUPP) { | |
| 338 | − trans.ph = SWITCHDEV_TRANS_ABORT; | |
| 339 | − __switchdev_port_obj_add(dev, obj, &trans); | |
| 334 | + if (err != -EOPNOTSUPP) | |
| 340 | 335 | switchdev_trans_items_destroy(&trans); |
| 341 | − } | |
| 342 | 336 | |
| 343 | 337 | return err; |
| 344 | 338 | } |