From patchwork Sun Sep 30 21:41:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Aring X-Patchwork-Id: 10621501 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CE98D13BB for ; Sun, 30 Sep 2018 21:42:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2C7228EB3 for ; Sun, 30 Sep 2018 21:42:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A626B28EC5; Sun, 30 Sep 2018 21:42:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B8C628EB3 for ; Sun, 30 Sep 2018 21:42:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726117AbeJAEQO (ORCPT ); Mon, 1 Oct 2018 00:16:14 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:36975 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbeJAEQO (ORCPT ); Mon, 1 Oct 2018 00:16:14 -0400 Received: by mail-qt1-f196.google.com with SMTP id n6-v6so12054290qtl.4 for ; Sun, 30 Sep 2018 14:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=sEaFnbAE07lhreHasvv5v5ZFNt2WQ+3LdSmZQdq6P8A=; b=rA+QG6WslUiRN/wjqEIpNtCY8c1YRz8fA7LoWVVQW7tqIo3z3iQ+e+29R80GchGiKo pQzQL6P5dVbUOWgUpWRCTw/NOyoHLw9PtqDDCcaVxL63kB8e4u5ftTfunYK/TYPJwO/a MOZjMl4OCzhuq9JhEYXPjqHuuJbbfs8a2DK6RaveoRUL6W8Pq39+kwPryVFORxVTJU44 i55dlEgmbcZVLZVsddC73iIc6wd5Mmx/qtVorRi5Wakgo1oPW3VKGWuq639e11kubB1h woEj63mMTglVA57nNpQ2/7TU3KQnWMI6ohjm2di7JaekbHRur4aIj6pnRRHcwj1UoPJL KFaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sEaFnbAE07lhreHasvv5v5ZFNt2WQ+3LdSmZQdq6P8A=; b=cbmuwdPP0DxlAiTnMHHo7KCA4OujhyHMd66AX8mniEpVLExnZZisuTNjO2cGFLUnOe yO+e7NB/53bk06ZOBfTzGCTGIzuzDaEvvD8B35m27AEY2g9OGg7fbeIzAwwWeUytHFF2 fJ2fxjv1go4g6exEoBDclz7EcUko74oTK3FXveHMJGDYH9X7Z1yxgb57iMVniSKra0s5 EUXwpR2OL58dbwhrXw1S4zKzBjxtVRErcc58Q2Vx604dHEQ46G1MBidNOR28gTPkNyD4 39Qf2/iLnwSdidbmn7PifjTzJkIX420UbqyBAJwC27CXJjNiyv5qn4DhSHV8iio6iq7k bRpg== X-Gm-Message-State: ABuFfojAEfVRV+W4r04uwtsnKDPbl6/6lkWRm7npXHgEacwRULLJQAVD PCaMhUr9djbT0SzscWZ5fPi/6CDQukQ= X-Google-Smtp-Source: ACcGV61nXrB9hbZnPnI+f0XjQfccqMx6+zxOFxMTrb0We6+Sc/8nYwHfZG78WF3eOYqfiayta6XiNQ== X-Received: by 2002:ac8:2c1b:: with SMTP id d27-v6mr2343525qta.18.1538343697943; Sun, 30 Sep 2018 14:41:37 -0700 (PDT) Received: from x220t.lan ([64.26.149.125]) by smtp.gmail.com with ESMTPSA id c43-v6sm2073597qtd.85.2018.09.30.14.41.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Sep 2018 14:41:37 -0700 (PDT) From: Alexander Aring To: stefan@datenfreihafen.org Cc: linux-wpan@vger.kernel.org, Alexander Aring Subject: [PATCH wpan-next] ieee802154: hwsim: remove not used ifup list Date: Sun, 30 Sep 2018 17:41:29 -0400 Message-Id: <20180930214129.2600-1-aring@mojatatu.com> X-Mailer: git-send-email 2.11.0 Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This list is a leftover from fakelb driver which had always a full mesh topology. Idea was to remember all phy's which are currently used by the subsystem and deliver everything out. The hwsim driver works differently each phy has a list of other phy's to deliver frames which allows a own mesh topology. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/mac802154_hwsim.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/net/ieee802154/mac802154_hwsim.c b/drivers/net/ieee802154/mac802154_hwsim.c index bf70ab892e69..51b5198d5943 100644 --- a/drivers/net/ieee802154/mac802154_hwsim.c +++ b/drivers/net/ieee802154/mac802154_hwsim.c @@ -37,8 +37,6 @@ MODULE_LICENSE("GPL"); static LIST_HEAD(hwsim_phys); static DEFINE_MUTEX(hwsim_phys_lock); -static LIST_HEAD(hwsim_ifup_phys); - static struct platform_device *mac802154hwsim_dev; /* MAC802154_HWSIM netlink family */ @@ -85,7 +83,6 @@ struct hwsim_phy { struct list_head edges; struct list_head list; - struct list_head list_ifup; }; static int hwsim_add_one(struct genl_info *info, struct device *dev, @@ -159,9 +156,6 @@ static int hwsim_hw_start(struct ieee802154_hw *hw) struct hwsim_phy *phy = hw->priv; phy->suspended = false; - list_add_rcu(&phy->list_ifup, &hwsim_ifup_phys); - synchronize_rcu(); - return 0; } @@ -170,8 +164,6 @@ static void hwsim_hw_stop(struct ieee802154_hw *hw) struct hwsim_phy *phy = hw->priv; phy->suspended = true; - list_del_rcu(&phy->list_ifup); - synchronize_rcu(); } static int