batman-adv: Use inline kernel-doc for enum/struct
The inline kernel-doc comments make it easier to keep changes to the struct/enum synchronized with the documentation of the it. And it makes it easier for larger structures like struct batadv_priv to read the documentation inside the code. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
This commit is contained in:
committed by
Simon Wunderlich
parent
7e9a8c2ce7
commit
8b84cc4fb5
@ -26,15 +26,21 @@ struct sk_buff;
|
||||
|
||||
/**
|
||||
* enum batadv_forw_mode - the way a packet should be forwarded as
|
||||
* @BATADV_FORW_ALL: forward the packet to all nodes (currently via classic
|
||||
* flooding)
|
||||
* @BATADV_FORW_SINGLE: forward the packet to a single node (currently via the
|
||||
* BATMAN unicast routing protocol)
|
||||
* @BATADV_FORW_NONE: don't forward, drop it
|
||||
*/
|
||||
enum batadv_forw_mode {
|
||||
/**
|
||||
* @BATADV_FORW_ALL: forward the packet to all nodes (currently via
|
||||
* classic flooding)
|
||||
*/
|
||||
BATADV_FORW_ALL,
|
||||
|
||||
/**
|
||||
* @BATADV_FORW_SINGLE: forward the packet to a single node (currently
|
||||
* via the BATMAN unicast routing protocol)
|
||||
*/
|
||||
BATADV_FORW_SINGLE,
|
||||
|
||||
/** @BATADV_FORW_NONE: don't forward, drop it */
|
||||
BATADV_FORW_NONE,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user