netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/7] net: handle addr_type of 0 properly
@ 2011-02-25 15:45 Hagen Paul Pfeifer
  2011-02-25 15:45 ` [PATCH 2/7] dccp: newdp is declared/assigned but never be used Hagen Paul Pfeifer
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Hagen Paul Pfeifer @ 2011-02-25 15:45 UTC (permalink / raw)
  To: netdev; +Cc: fw

addr_type of 0 means that the type should be adopted from from_dev and
not from __hw_addr_del_multiple(). Unfortunately it isn't so and
addr_type will always be considered. Fix this by implementing the
considered and documented behavior.

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
---
 net/core/dev_addr_lists.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/core/dev_addr_lists.c b/net/core/dev_addr_lists.c
index 508f9c1..133fd22 100644
--- a/net/core/dev_addr_lists.c
+++ b/net/core/dev_addr_lists.c
@@ -144,7 +144,7 @@ void __hw_addr_del_multiple(struct netdev_hw_addr_list *to_list,
 
 	list_for_each_entry(ha, &from_list->list, list) {
 		type = addr_type ? addr_type : ha->type;
-		__hw_addr_del(to_list, ha->addr, addr_len, addr_type);
+		__hw_addr_del(to_list, ha->addr, addr_len, type);
 	}
 }
 EXPORT_SYMBOL(__hw_addr_del_multiple);
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-02-25 22:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25 15:45 [PATCH 1/7] net: handle addr_type of 0 properly Hagen Paul Pfeifer
2011-02-25 15:45 ` [PATCH 2/7] dccp: newdp is declared/assigned but never be used Hagen Paul Pfeifer
2011-02-25 22:00   ` David Miller
2011-02-25 15:45 ` [PATCH 3/7] ipv6: totlen is declared and assigned but not used Hagen Paul Pfeifer
2011-02-25 22:00   ` David Miller
2011-02-25 15:45 ` [PATCH 4/7] ipv6: hash is calculated but not used afterwards Hagen Paul Pfeifer
2011-02-25 22:00   ` David Miller
2011-02-25 15:45 ` [PATCH 5/7] ipv6: variable next is never used in this function Hagen Paul Pfeifer
2011-02-25 22:01   ` David Miller
2011-02-25 15:45 ` [PATCH 6/7] ipv6: ignore rtnl_unicast() return code Hagen Paul Pfeifer
2011-02-25 22:01   ` David Miller
2011-02-25 15:45 ` [PATCH 7/7] sched: protocol only needed when CONFIG_NET_CLS_ACT is enabled Hagen Paul Pfeifer
2011-02-25 22:01   ` David Miller
2011-02-25 21:59 ` [PATCH 1/7] net: handle addr_type of 0 properly 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).