mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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
|
@ -20,14 +20,7 @@
|
|||
#define SWITCHDEV_F_SKIP_EOPNOTSUPP BIT(1)
|
||||
#define SWITCHDEV_F_DEFER BIT(2)
|
||||
|
||||
struct switchdev_trans_item {
|
||||
struct list_head list;
|
||||
void *data;
|
||||
void (*destructor)(const void *data);
|
||||
};
|
||||
|
||||
struct switchdev_trans {
|
||||
struct list_head item_list;
|
||||
bool ph_prepare;
|
||||
};
|
||||
|
||||
|
@ -105,11 +98,6 @@ struct switchdev_obj_port_mdb {
|
|||
#define SWITCHDEV_OBJ_PORT_MDB(OBJ) \
|
||||
container_of((OBJ), struct switchdev_obj_port_mdb, obj)
|
||||
|
||||
void switchdev_trans_item_enqueue(struct switchdev_trans *trans,
|
||||
void *data, void (*destructor)(void const *),
|
||||
struct switchdev_trans_item *tritem);
|
||||
void *switchdev_trans_item_dequeue(struct switchdev_trans *trans);
|
||||
|
||||
typedef int switchdev_obj_dump_cb_t(struct switchdev_obj *obj);
|
||||
|
||||
enum switchdev_notifier_type {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue