Skip to contentSkip to conversation

qeth-related patch for net-2.6.24

PATCH In review Ursula Braun 2 participants 3 messages Oct 8, 2007 – Oct 9, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover qeth-related patch for net-2.6.24

Signature · 7 lines
Dave,

the following patch is intended for 2.6.24.
It adds the capability to create unique ipv6-addresses for vlan devices
based on shared network cards (for example: s390/net/qeth devices).

Regards, Ursula
#1 lore raw

PATCH 1/1 8021q: transfer dev_id from real device

From: Ursula Braun <[email protected]>

A net_device struct provides field dev_id. It is used for unique ipv6 generation in case of shared network cards (as for the OSA network cards of IBM System z).
If VLAN devices are built on top of such shared network cards, this dev_id information needs to be transferred to the VLAN device.

---
 net/8021q/vlan.c |    3 +++
 1 file changed, 3 insertions(+)
net/8021q/vlan.c +3 -0
Index: net-2.6.24-uschi/net/8021q/vlan.c
===================================================================
@@ -331,6 +331,9 @@ static int vlan_dev_init(struct net_devi
 					  (1<<__LINK_STATE_DORMANT))) |
 		      (1<<__LINK_STATE_PRESENT);
 
+	/* ipv6 shared card related stuff */
+	dev->dev_id = real_dev->dev_id;
+
 	if (is_zero_ether_addr(dev->dev_addr))
 		memcpy(dev->dev_addr, real_dev->dev_addr, dev->addr_len);
 	if (is_zero_ether_addr(dev->broadcast))
maintainer
#2 lore raw

Re: [patch 1/1] 8021q: transfer dev_id from real device

From: Ursula Braun <[email protected]>
Date: Mon, 08 Oct 2007 17:05:05 +0200

Quoted 9 lines

From: Ursula Braun <[email protected]>

A net_device struct provides field dev_id. It is used for unique ipv6 generation in case of shared network cards (as for the OSA network cards of IBM System z).
If VLAN devices are built on top of such shared network cards, this dev_id information needs to be transferred to the VLAN device.

Patch applied, thanks!