From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vlad Yasevich Subject: [PATCHv2 0/2] Add suppport for sync of hw addresses to multiple devices. Date: Mon, 15 Apr 2013 15:54:24 -0400 Message-ID: <1366055666-12916-1-git-send-email-vyasevic@redhat.com> Cc: Vlad Yasevich To: netdev@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:61274 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754115Ab3DOTy2 (ORCPT ); Mon, 15 Apr 2013 15:54:28 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3FJsR8Z014624 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 15 Apr 2013 15:54:27 -0400 Sender: netdev-owner@vger.kernel.org List-ID: Current dev_[uc|mc]_addr_sync() API currently correctly syncs the addresses to the first device. Any subsequent calls to sync will not do anything since the synched variable will be set. This variable is used as an optimization to skip over addresses that have been synched. There are some devices (ex: team) that attempt to do the above. There is other work in progress that needs to above to work corretly. The short series introduces dev_[uc|mc]_addr_synch_multiple() that allows multiple calls to sync to multiple different devices. Original API is left alone and still has the limitation. Changes since v1: - Commit abstract corrections. Vlad Yasevich (2): net: add dev_uc_sync_multiple() and dev_mc_sync_multiple() api team: Use new sync_multiple api to sync devices adressess. drivers/net/team/team.c | 4 +- include/linux/netdevice.h | 3 + net/core/dev_addr_lists.c | 210 ++++++++++++++++++++++++++++++++++++--------- 3 files changed, 173 insertions(+), 44 deletions(-) -- 1.7.7.6