From patchwork Tue Jan 31 20:07:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Manoharan, Rajkumar" X-Patchwork-Id: 9548375 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 64CA260236 for ; Tue, 31 Jan 2017 20:11:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5700E26E47 for ; Tue, 31 Jan 2017 20:11:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BC8C28249; Tue, 31 Jan 2017 20:11:16 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 04C0726E47 for ; Tue, 31 Jan 2017 20:11:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752179AbdAaULO (ORCPT ); Tue, 31 Jan 2017 15:11:14 -0500 Received: from wolverine01.qualcomm.com ([199.106.114.254]:14380 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751939AbdAaULM (ORCPT ); Tue, 31 Jan 2017 15:11:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1485893472; x=1517429472; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=1JJU4rPjuL+OubnRTWQzymuCWj/VNcORPwWkOJgxtKE=; b=EnVjsWeCEfTm+K5MyiZqlG5vRspUOg9Ptud5dHnFkggz7HoICU92OqK9 roWK41/UhIpwXtUcZtxZITxI3eRfNZDgMIoYhFmbiv5NymVhQtnyIOAlz iuCyY10qdkyn1/X+iNLzOgEslg+5h0/4euLUtnAh0wkzbbnHGTgIdD42j I=; X-IronPort-AV: E=Sophos;i="5.33,315,1477983600"; d="scan'208";a="259415831" Received: from ironmsg02-lv.qualcomm.com ([10.47.202.183]) by wolverine01.qualcomm.com with ESMTP; 31 Jan 2017 12:08:08 -0800 X-IronPort-AV: E=McAfee;i="5700,7163,8425"; a="36178962" Received: from nalasexr01h.na.qualcomm.com ([10.49.56.54]) by ironmsg02-lv.qualcomm.com with ESMTP/TLS/RC4-SHA; 31 Jan 2017 12:08:07 -0800 Received: from qcmail1.qualcomm.com (10.80.80.8) by NALASEXR01H.na.qualcomm.com (10.49.56.54) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 31 Jan 2017 12:08:06 -0800 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Tue, 31 Jan 2017 12:08:06 -0800 From: Rajkumar Manoharan To: CC: , , Rajkumar Manoharan Subject: [PATCH v2 3/3] mac80211: clear failure average upon mesh path deactivation Date: Tue, 31 Jan 2017 12:07:52 -0800 Message-ID: <1485893272-6893-3-git-send-email-rmanohar@qca.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1485893272-6893-1-git-send-email-rmanohar@qca.qualcomm.com> References: <1485893272-6893-1-git-send-email-rmanohar@qca.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01C.na.qualcomm.com (10.85.0.83) To NALASEXR01H.na.qualcomm.com (10.49.56.54) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Mesh moving average should be cleared, whenever mesh paths to the given station are deactivated due to bad link. It makes path deactivation logic more robust by considering more tx status before terminating mesh link. Signed-off-by: Rajkumar Manoharan --- v2: * removed paths_deactivated check * updated commit log net/mac80211/mesh_pathtbl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c index f0e6175a9821..bab443e5284d 100644 --- a/net/mac80211/mesh_pathtbl.c +++ b/net/mac80211/mesh_pathtbl.c @@ -537,6 +537,7 @@ void mesh_plink_broken(struct sta_info *sta) WLAN_REASON_MESH_PATH_DEST_UNREACHABLE, bcast); } } + sta->mesh->fail_avg = 0; out: rhashtable_walk_stop(&iter); rhashtable_walk_exit(&iter);