From patchwork Fri Jul 22 17:18:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "'arozansk@redhat.com'" X-Patchwork-Id: 9243861 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 3073A60756 for ; Fri, 22 Jul 2016 17:18:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F8D82236A for ; Fri, 22 Jul 2016 17:18:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13FA527FA8; Fri, 22 Jul 2016 17:18:25 +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.9 required=2.0 tests=BAYES_00,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 BE1082236A for ; Fri, 22 Jul 2016 17:18:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753246AbcGVRSY (ORCPT ); Fri, 22 Jul 2016 13:18:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42761 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752355AbcGVRSX (ORCPT ); Fri, 22 Jul 2016 13:18:23 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2957A8535A; Fri, 22 Jul 2016 17:18:23 +0000 (UTC) Received: from napanee.usersys.redhat.com (dhcp-17-12.bos.redhat.com [10.18.17.12]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6MHIMw7008818; Fri, 22 Jul 2016 13:18:22 -0400 Received: by napanee.usersys.redhat.com (Postfix, from userid 1000) id E6A47C07FE; Fri, 22 Jul 2016 13:18:21 -0400 (EDT) From: Aristeu Rozanski To: linux-wpan@vger.kernel.org Cc: Alexander Aring , Stefan Schmidt , Jukka Rissanen , Aristeu Rozanski Subject: [PATCH 2/3] mac802154: use rate limited warnings for malformed frames Date: Fri, 22 Jul 2016 13:18:15 -0400 Message-Id: <1469207896-26481-2-git-send-email-arozansk@redhat.com> In-Reply-To: <1469207896-26481-1-git-send-email-arozansk@redhat.com> References: <1469207896-26481-1-git-send-email-arozansk@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 22 Jul 2016 17:18:23 +0000 (UTC) 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 Signed-off-by: Aristeu Rozanski Acked-by: Alexander Aring --- net/mac802154/rx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c index d388bf2..11dac04 100644 --- a/net/mac802154/rx.c +++ b/net/mac802154/rx.c @@ -111,8 +111,8 @@ ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata, return ieee802154_deliver_skb(skb); default: - pr_warn("ieee802154: bad frame received (type = %d)\n", - mac_cb(skb)->type); + pr_warn_ratelimited("ieee802154: bad frame received " + "(type = %d)\n", mac_cb(skb)->type); sdata->dev->stats.rx_frame_errors++; goto fail; }