mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-18 22:14:16 +00:00 
			
		
		
		
	[INET]: annotate inet_ecn.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									8a9ae2110b
								
							
						
					
					
						commit
						92d9ece7af
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -95,13 +95,13 @@ static inline int IP6_ECN_set_ce(struct ipv6hdr *iph) | |||
| { | ||||
| 	if (INET_ECN_is_not_ect(ipv6_get_dsfield(iph))) | ||||
| 		return 0; | ||||
| 	*(u32*)iph |= htonl(INET_ECN_CE << 20); | ||||
| 	*(__be32*)iph |= htonl(INET_ECN_CE << 20); | ||||
| 	return 1; | ||||
| } | ||||
| 
 | ||||
| static inline void IP6_ECN_clear(struct ipv6hdr *iph) | ||||
| { | ||||
| 	*(u32*)iph &= ~htonl(INET_ECN_MASK << 20); | ||||
| 	*(__be32*)iph &= ~htonl(INET_ECN_MASK << 20); | ||||
| } | ||||
| 
 | ||||
| static inline void ipv6_copy_dscp(struct ipv6hdr *outer, struct ipv6hdr *inner) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Al Viro
						Al Viro