Search Linux Wireless

Re: [PATCH 05/13] o11s: added mesh.h, mesh function and data structures definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +/* plink is short for peer link */
> +struct mesh_plink {
> +	u8 ha[ETH_ALEN];	/* Hardware address */
> +	__le16 llid;		/* Local link ID */
> +	__le16 plid;		/* Peer link ID */
> +	__le16 reason;		/* Buffer for cancel reason on HOLDING state */
> +	u8 retries;		/* Retries in establishment */
> +	enum plink_state state;
> +	u32 timeout;
> +	struct timer_list timer;
> +	bool ignore_timer;
> +	spinlock_t state_lock;	/* For peer_state reads / updates and other
> +				   updates in the structure. Ensures robust
> +				   trasitions for the peerlink FSM */

typo: transitions, what does FSM mean? Also, using kernel-doc instead of
inline comments would be appreciated for when I get around to writing
documentation again.

> +#define MESH_PATH_ACTIVE	1
> +#define MESH_PATH_RESOLVING	2
> +#define MESH_PATH_DSN_VALID	4
> +#define MESH_PATH_FIXED		8
> +#define MESH_PATH_DELETE	16
> +#define MESH_PATH_RESOLVED	32

You could use an enum and kernel-doc to explain these, also the BIT()
might make sense.

> +struct mesh_path {

> +struct mesh_table {

> +struct rmc_entry {

Similarly, kernel-doc would be nice.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux