Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6933451ybn; Mon, 30 Sep 2019 06:12:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXoNaLHfYOmW9YScCL4bX4IK5rI+XKu2Naf3C0V1gVOhr9m1esBNrjp0ms/vdr8Qy5c4Ko X-Received: by 2002:a17:906:6bca:: with SMTP id t10mr19481284ejs.64.1569849130883; Mon, 30 Sep 2019 06:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569849130; cv=none; d=google.com; s=arc-20160816; b=oc8iCL36GqZOdbIdsR6jNEipQKUIXEJeVHvqvcVT36sSEBKevz76O8kyyA4ChZEEFK EvO2IdlUS9hr6V8/dwnbeG3HYQzB7GZFh34fn2c19lmvRSOB4zF2piN5dGOgut7+3Qq6 8Akw2xb4sAYT3uBhdu0blaBiJ1NRjaXH4PZKbvsYKROyZJceWc69TR4aFrGOosCovFD0 nP9MA0/PYUxZAnj8tAoimQpLWGwEmTNrfX4S93urqSxdKOHac4oq5JE4QP85Ql/ykuF1 hgIIJm7ogr4hJFtVZdD7fwwSKTTnJhTpm22eTrZCb1leTWN4lqNZyecPJFGAISduc+8z bd2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=yvTBruD6zaxn4sjv75YBQD/wvJnGfoapWmbizXNwOe4=; b=LchEJN8ypbncsOwhMm6hq9a436NNJgT6s/vaNypOKJZtm9f0ig1JZtCymlxwXl1sgw LJtaM1bNihSaL4YDl3sZFW4MBiNWq1RRjjLKtBvrAujNa+xiIIcLQbgBCydfSmEKjPwV foLaFd7KpZFiqVt8XmZtindCkCmnm/oOEosukvjwgGKT3V0GZvM2CZrMW0aI5stAOp5U YinOVS2Os269sQh1nnOOCBkzQusmgGqa8xtoc/9yoQRlgyYWawFUIBug06XgOAQ+99ow 67I25lBA+jFmpPEzDA1zQ5OvCu/s5naEfFv+k1mfqML9DBkWCnqfTamM+O191vGfgYAx L5ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d52si6892945ede.370.2019.09.30.06.11.41; Mon, 30 Sep 2019 06:12:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731095AbfI3NLd (ORCPT + 99 others); Mon, 30 Sep 2019 09:11:33 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:36213 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726314AbfI3NLd (ORCPT ); Mon, 30 Sep 2019 09:11:33 -0400 Received: by mail-qk1-f196.google.com with SMTP id y189so7682169qkc.3; Mon, 30 Sep 2019 06:11:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yvTBruD6zaxn4sjv75YBQD/wvJnGfoapWmbizXNwOe4=; b=QTle/f5DLXEhlyP1XuY4qJyszbl+i54AIelwGPscZpbMgfqMw00kTq+pYnVQWNwW0O LNcKarv2fWT9nJ+6OulbjshHCe3MpGGMIClpjW0OOWCMD1TBFi077e7hLSOk8uzICPds 3CP03cvDfD+71dy2XUx1rXKbEVZYln3lKaruP3oW+83OfdMuEGcXoswDjeLww0VrQajD 1+nYF3nIsHj562Fu5xuxIEDIwXcvbcWKb8MRTL0L1D+PubjlOb3dquDi2F+LZ4qfPaVl TEEeFIKrzK9K9diCjx4FXCJVuYxXvGb77tN4juHjx2GeYPSU5QAKsUgjcc04rZwfI/se E+ww== X-Gm-Message-State: APjAAAVPBo5ijoyMdXycwEYgLgQBalEFehoBccaoxfQxais/64PI3C50 2V6aGzoA9gyhKi53wTlhPJjHtgcRpboqCQVXoJvSdpUm X-Received: by 2002:ae9:ef8c:: with SMTP id d134mr18891406qkg.286.1569849091986; Mon, 30 Sep 2019 06:11:31 -0700 (PDT) MIME-Version: 1.0 References: <8879f74a8cc5dffdb14d553c321d64c63ea9fe2d.1569831229.git.Jose.Abreu@synopsys.com> In-Reply-To: <8879f74a8cc5dffdb14d553c321d64c63ea9fe2d.1569831229.git.Jose.Abreu@synopsys.com> From: Arnd Bergmann Date: Mon, 30 Sep 2019 15:11:15 +0200 Message-ID: Subject: Re: [PATCH v2 net 9/9] net: stmmac: xgmac: Fix RSS writing wrong keys To: Jose Abreu Cc: Networking , Joao Pinto , Giuseppe Cavallaro , Alexandre Torgue , "David S. Miller" , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, Linux ARM , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 30, 2019 at 10:19 AM Jose Abreu wrote: > > Commit b6b6cc9acd7b, changed the call to dwxgmac2_rss_write_reg() > passing it the variable cfg->key[i]. > > As key is an u8 but we write 32 bits at a time we need to cast it into > an u32 so that the correct key values are written. Notice that the for > loop already takes this into account so we don't try to write past the > keys size. Right, sorry about my mistake. > Fixes: b6b6cc9acd7b ("net: stmmac: selftest: avoid large stack usage") > Signed-off-by: Jose Abreu Reviewed-by: Arnd Bergmann