* [patch 0/1] [8021q] qeth-related patch for net-2.6.24
@ 2007-10-08 15:05 Ursula Braun
2007-10-08 15:05 ` [patch 1/1] 8021q: transfer dev_id from real device Ursula Braun
0 siblings, 1 reply; 3+ messages in thread
From: Ursula Braun @ 2007-10-08 15:05 UTC (permalink / raw)
To: davem, netdev, linux-s390
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [patch 1/1] 8021q: transfer dev_id from real device
2007-10-08 15:05 [patch 0/1] [8021q] qeth-related patch for net-2.6.24 Ursula Braun
@ 2007-10-08 15:05 ` Ursula Braun
2007-10-09 3:29 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Ursula Braun @ 2007-10-08 15:05 UTC (permalink / raw)
To: davem, netdev, linux-s390
[-- Attachment #1: 8021q-vlan.diff --]
[-- Type: text/plain, Size: 1000 bytes --]
From: Ursula Braun <braunu@de.ibm.com>
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.
Signed-off-by: Ursula Braun <braunu@de.ibm.com>
---
net/8021q/vlan.c | 3 +++
1 file changed, 3 insertions(+)
Index: net-2.6.24-uschi/net/8021q/vlan.c
===================================================================
--- net-2.6.24-uschi.orig/net/8021q/vlan.c
+++ 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))
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch 1/1] 8021q: transfer dev_id from real device
2007-10-08 15:05 ` [patch 1/1] 8021q: transfer dev_id from real device Ursula Braun
@ 2007-10-09 3:29 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2007-10-09 3:29 UTC (permalink / raw)
To: braunu; +Cc: netdev, linux-s390
From: Ursula Braun <braunu@de.ibm.com>
Date: Mon, 08 Oct 2007 17:05:05 +0200
> From: Ursula Braun <braunu@de.ibm.com>
>
> 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.
>
> Signed-off-by: Ursula Braun <braunu@de.ibm.com>
Patch applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-09 3:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-08 15:05 [patch 0/1] [8021q] qeth-related patch for net-2.6.24 Ursula Braun
2007-10-08 15:05 ` [patch 1/1] 8021q: transfer dev_id from real device Ursula Braun
2007-10-09 3:29 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).