summaryrefslogtreecommitdiff
path: root/vlan.h
blob: b58d1a26f20e224d0a6a2960f140118ccf643bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef VLAN_H
#define VLAN_H

#include <stdbool.h>
#include <inttypes.h>

static inline uint16_t vlan_tci2prio(uint16_t tci)
{
	return (tci & 0xe000) >> 13;
}

static inline uint16_t vlan_tci2cfi(uint16_t tci)
{
	return (tci & 0x1000) >> 12;
}

static inline uint16_t vlan_tci2vid(uint16_t tci)
{
	return tci & 0x0fff;
}

#endif
indriver.com>2012-08-16 12:09:10 +0000 committerDavid S. Miller <davem@davemloft.net>2012-08-20 02:26:30 -0700 commit379c0456afc170d56ceb712a5689ede91d293e88 (patch) tree6118e094f24d8160dda7bcad5250e3fa22e5c2ba /net/tipc parent381294331ed2858f8e75223310f873d580921366 (diff)
tipc: change tipc_net_start routine return value type
Since now tipc_net_start() always returns a success code - 0, its return value type should be changed from integer to void, which can avoid unnecessary check for its return value. Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')