* Re: [PATCH 3/3] [LLC]: zero station mac source address [not found] <47e76799.1cef600a.7b83.6fea@mx.google.com> @ 2008-03-24 17:19 ` Arnaldo Carvalho de Melo 2008-03-25 5:18 ` Joonwoo Park 0 siblings, 1 reply; 2+ messages in thread From: Arnaldo Carvalho de Melo @ 2008-03-24 17:19 UTC (permalink / raw) To: joonwpark81; +Cc: davem, netdev Em Mon, Mar 24, 2008 at 05:34:30PM +0900, joonwpark81@gmail.com escreveu: > From: Joonwoo Park <joonwpark81@gmail.com> > > The right next device of the lo can have zero dev_addr. e.g. bonding. > > Signed-off-by: Joonwoo Park <joonwpark81@gmail.com> > --- > net/llc/llc_core.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/net/llc/llc_core.c b/net/llc/llc_core.c > index 248b590..b871e10 100644 > --- a/net/llc/llc_core.c > +++ b/net/llc/llc_core.c > @@ -19,6 +19,7 @@ > #include <linux/slab.h> > #include <linux/string.h> > #include <linux/init.h> > +#include <linux/etherdevice.h> > #include <net/net_namespace.h> > #include <net/llc.h> > > @@ -164,8 +165,9 @@ static int __init llc_init(void) > struct net_device *dev; > > dev = first_net_device(&init_net); > - if (dev != NULL) > + do { > dev = next_net_device(dev); > + } while (dev && is_zero_ether_addr(dev->dev_addr)); > > if (dev != NULL) > memcpy(llc_station_mac_sa, dev->dev_addr, ETH_ALEN); Looks ok, but I think this is an area for further work, using just the first device in the list always was wrong, I was too lazy to fix it, but since you are working on it, please consider fixing this for good :-) - Arnaldo ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 3/3] [LLC]: zero station mac source address 2008-03-24 17:19 ` [PATCH 3/3] [LLC]: zero station mac source address Arnaldo Carvalho de Melo @ 2008-03-25 5:18 ` Joonwoo Park 0 siblings, 0 replies; 2+ messages in thread From: Joonwoo Park @ 2008-03-25 5:18 UTC (permalink / raw) To: Arnaldo Carvalho de Melo; +Cc: joonwpark81, davem, netdev 2008/3/25, Arnaldo Carvalho de Melo <acme@redhat.com>: > Em Mon, Mar 24, 2008 at 05:34:30PM +0900, joonwpark81@gmail.com escreveu: > > From: Joonwoo Park <joonwpark81@gmail.com> > > > > The right next device of the lo can have zero dev_addr. e.g. bonding. > > > > Signed-off-by: Joonwoo Park <joonwpark81@gmail.com> > > --- > > net/llc/llc_core.c | 4 +++- > > 1 files changed, 3 insertions(+), 1 deletions(-) > > > > diff --git a/net/llc/llc_core.c b/net/llc/llc_core.c > > index 248b590..b871e10 100644 > > --- a/net/llc/llc_core.c > > +++ b/net/llc/llc_core.c > > @@ -19,6 +19,7 @@ > > #include <linux/slab.h> > > #include <linux/string.h> > > #include <linux/init.h> > > +#include <linux/etherdevice.h> > > #include <net/net_namespace.h> > > #include <net/llc.h> > > > > @@ -164,8 +165,9 @@ static int __init llc_init(void) > > struct net_device *dev; > > > > dev = first_net_device(&init_net); > > - if (dev != NULL) > > + do { > > dev = next_net_device(dev); > > + } while (dev && is_zero_ether_addr(dev->dev_addr)); > > > > if (dev != NULL) > > memcpy(llc_station_mac_sa, dev->dev_addr, ETH_ALEN); > > Looks ok, but I think this is an area for further work, using just > the first device in the list always was wrong, I was too lazy to fix it, > but since you are working on it, please consider fixing this for good > :-) > > - Arnaldo > Arnaldo, Please give me more hints :-) First off, I wondered 'we need llc_station_mac_sa?' IMHO, dev->dev_addr of egress interface for llc sa would be fine. Do you happen to think this? Thanks, Joonwoo ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-25 5:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <47e76799.1cef600a.7b83.6fea@mx.google.com>
2008-03-24 17:19 ` [PATCH 3/3] [LLC]: zero station mac source address Arnaldo Carvalho de Melo
2008-03-25 5:18 ` Joonwoo Park
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.