OSDN Git Service

batman-adv: remove unused struct definitions
authorMarek Lindner <mareklindner@neomailbox.ch>
Wed, 14 Sep 2022 18:37:11 +0000 (20:37 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Thu, 15 Sep 2022 06:16:05 +0000 (08:16 +0200)
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/types.h

index 2be5d4a..758cd79 100644 (file)
@@ -1740,45 +1740,6 @@ struct batadv_priv {
 #endif
 };
 
-/**
- * struct batadv_socket_client - layer2 icmp socket client data
- */
-struct batadv_socket_client {
-       /**
-        * @queue_list: packet queue for packets destined for this socket client
-        */
-       struct list_head queue_list;
-
-       /** @queue_len: number of packets in the packet queue (queue_list) */
-       unsigned int queue_len;
-
-       /** @index: socket client's index in the batadv_socket_client_hash */
-       unsigned char index;
-
-       /** @lock: lock protecting queue_list, queue_len & index */
-       spinlock_t lock;
-
-       /** @queue_wait: socket client's wait queue */
-       wait_queue_head_t queue_wait;
-
-       /** @bat_priv: pointer to soft_iface this client belongs to */
-       struct batadv_priv *bat_priv;
-};
-
-/**
- * struct batadv_socket_packet - layer2 icmp packet for socket client
- */
-struct batadv_socket_packet {
-       /** @list: list node for &batadv_socket_client.queue_list */
-       struct list_head list;
-
-       /** @icmp_len: size of the layer2 icmp packet */
-       size_t icmp_len;
-
-       /** @icmp_packet: layer2 icmp packet */
-       u8 icmp_packet[BATADV_ICMP_MAX_PACKET_SIZE];
-};
-
 #ifdef CONFIG_BATMAN_ADV_BLA
 
 /**