Skip to content

Commit 3a8d121

Browse files
ajstephensDavid S. Miller
authored andcommitted
[TIPC]: Add support for Ethernet VLANs
This patch enhances TIPC's Ethernet support to include VLAN interfaces. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Per Liden <per.liden@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a3df92c commit 3a8d121

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎net/tipc/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int tipc_random;
9090
atomic_t tipc_user_count = ATOMIC_INIT(0);
9191

9292
const char tipc_alphabet[] =
93-
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
93+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.";
9494

9595
/* configurable TIPC parameters */
9696

‎net/tipc/core.h‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,15 @@ static inline void k_term_timer(struct timer_list *timer)
275275
/*
276276
* TIPC message buffer code
277277
*
278-
* TIPC message buffer headroom leaves room for 14 byte Ethernet header,
278+
* TIPC message buffer headroom reserves space for a link-level header
279+
* (in case the message is sent off-node),
279280
* while ensuring TIPC header is word aligned for quicker access
281+
*
282+
* The largest header currently supported is 18 bytes, which is used when
283+
* the standard 14 byte Ethernet header has 4 added bytes for VLAN info
280284
*/
281285

282-
#define BUF_HEADROOM 16u
286+
#define BUF_HEADROOM 20u
283287

284288
struct tipc_skb_cb {
285289
void *handle;

0 commit comments

Comments
 (0)