History

switchdev: remove "ABORT" transaction phase

No longer used by drivers, as transaction queue with item destructors takes care of abort phase internally in switchdev code. So kill it.

Jiri Pirko committed 11 years ago

Commit 9f6467c1 parent 2b8a61a2 files · +2 −9Browse files

Showing the changes to net/switchdev/switchdev.c (1 of 2 files). Show all

Unified · Split

net/switchdev/switchdev.c+2−8
@@ -248,11 +248,8 @@ int switchdev_port_attr_set(struct net_device *dev, struct switchdev_attr *attr) · 247 unmodified lines
248248 * released.
249249 */
250250
251− if (err != -EOPNOTSUPP) {
252− trans.ph = SWITCHDEV_TRANS_ABORT;
253− __switchdev_port_attr_set(dev, attr, &trans);
251+ if (err != -EOPNOTSUPP)
254252 switchdev_trans_items_destroy(&trans);
255− }
256253
257254 return err;
258255 }
@@ -334,11 +331,8 @@ int switchdev_port_obj_add(struct net_device *dev, struct switchdev_obj *obj) · 75 unmodified lines
334331 * released.
335332 */
336333
337− if (err != -EOPNOTSUPP) {
338− trans.ph = SWITCHDEV_TRANS_ABORT;
339− __switchdev_port_obj_add(dev, obj, &trans);
334+ if (err != -EOPNOTSUPP)
340335 switchdev_trans_items_destroy(&trans);
341− }
342336
343337 return err;
344338 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t