Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751880AbaANHlm (ORCPT ); Tue, 14 Jan 2014 02:41:42 -0500 Received: from mail.windriver.com ([147.11.1.11]:47509 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750777AbaANHll (ORCPT ); Tue, 14 Jan 2014 02:41:41 -0500 From: Ying Xue To: CC: , , , , , , , , Subject: [PATCH net-next 00/10] use appropriate APIs to get interfaces Date: Tue, 14 Jan 2014 15:40:59 +0800 Message-ID: <1389685269-18600-1-git-send-email-ying.xue@windriver.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Under rtnl_lock protection, we should use __dev_get_name/index() rather than dev_get_name()/index() to find interface handlers because the former interfaces can help us avoid to change interface reference counter. Ying Xue (10): Drivers: Staging: cxt1e1: use __dev_get_name instead of dev_get_name to find interfaces bonding: use __dev_get_by_name instead of dev_get_by_name to find interface eql: use __dev_get_by_name instead of dev_get_by_name to find interface dcb: use __dev_get_by_name instead of dev_get_by_name to find interface decnet: use __dev_get_by_index instead of dev_get_by_index to find interface vxlan: use __dev_get_by_index instead of dev_get_by_index to find interface batman-adv: use __dev_get_by_index instead of dev_get_by_index to find interface caif: __dev_get_by_index instead of dev_get_by_index to find interface can: use __dev_get_by_index instead of dev_get_by_index to find interface net: nl80211: __dev_get_by_index instead of dev_get_by_index to find interface drivers/net/bonding/bond_main.c | 49 +++++++++---------- drivers/net/eql.c | 95 ++++++++++++++++--------------------- drivers/net/vxlan.c | 3 +- drivers/staging/cxt1e1/linux.c | 15 +++--- net/batman-adv/hard-interface.c | 4 +- net/caif/chnl_net.c | 3 +- net/can/gw.c | 15 ++---- net/dcb/dcbnl.c | 15 ++---- net/decnet/dn_route.c | 6 +-- net/wireless/nl80211.c | 100 ++++++++++++++------------------------- 10 files changed, 123 insertions(+), 182 deletions(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/