linux-wpan.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Schmidt <stefan@datenfreihafen.org>
To: Alexander Aring <aring@mojatatu.com>
Cc: linux-wpan@vger.kernel.org
Subject: Re: [PATCH wpan-next] ieee802154: hwsim: remove not used ifup list
Date: Tue, 2 Oct 2018 17:18:14 +0200	[thread overview]
Message-ID: <939e719e-eb31-a5c1-ee0f-56d204176a7c@datenfreihafen.org> (raw)
In-Reply-To: <20180930214129.2600-1-aring@mojatatu.com>

Hello.

On 30/09/2018 23:41, Alexander Aring wrote:
> 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 <aring@mojatatu.com>
> ---
>  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
> 

This patch has been applied to the wpan-next tree and will be
part of the next pull request to net-next. Thanks!

regards
Stefan Schmidt

      reply	other threads:[~2018-10-02 22:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-30 21:41 [PATCH wpan-next] ieee802154: hwsim: remove not used ifup list Alexander Aring
2018-10-02 15:18 ` Stefan Schmidt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=939e719e-eb31-a5c1-ee0f-56d204176a7c@datenfreihafen.org \
    --to=stefan@datenfreihafen.org \
    --cc=aring@mojatatu.com \
    --cc=linux-wpan@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).