switchdev: Remove unused transaction item queue
There are no more in tree users of the
switchdev_trans_item_{dequeue,enqueue} or switchdev_trans_item structure
in the kernel since commit 00fc0c51e3 ("rocker: Change world_ops API
and implementation to be switchdev independant").
Remove this unused code and update the documentation accordingly since.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9bfc445e0e
commit
91cf8eceff
3 changed files with 2 additions and 129 deletions
|
|
@ -371,22 +371,3 @@ The driver can monitor for updates to arp_tbl using the netevent notifier
|
|||
NETEVENT_NEIGH_UPDATE. The device can be programmed with resolved nexthops
|
||||
for the routes as arp_tbl updates. The driver implements ndo_neigh_destroy
|
||||
to know when arp_tbl neighbor entries are purged from the port.
|
||||
|
||||
Transaction item queue
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
For switchdev ops attr_set and obj_add, there is a 2 phase transaction model
|
||||
used. First phase is to "prepare" anything needed, including various checks,
|
||||
memory allocation, etc. The goal is to handle the stuff that is not unlikely
|
||||
to fail here. The second phase is to "commit" the actual changes.
|
||||
|
||||
Switchdev provides an infrastructure for sharing items (for example memory
|
||||
allocations) between the two phases.
|
||||
|
||||
The object created by a driver in "prepare" phase and it is queued up by:
|
||||
switchdev_trans_item_enqueue()
|
||||
During the "commit" phase, the driver gets the object by:
|
||||
switchdev_trans_item_dequeue()
|
||||
|
||||
If a transaction is aborted during "prepare" phase, switchdev code will handle
|
||||
cleanup of the queued-up objects.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue