Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp211797pxx; Wed, 28 Oct 2020 02:58:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd0bxOgr6Zxsj+spKblC1T9JqkuOLiC6aGaG09zbkoDuv86+i/kHM+cf0TA3e3p6zc6H7E X-Received: by 2002:a17:906:c1d4:: with SMTP id bw20mr6566604ejb.91.1603879135873; Wed, 28 Oct 2020 02:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603879135; cv=none; d=google.com; s=arc-20160816; b=jkXUBL4HqgSYYPsTx85n3DhPlyJunBcWmSMYerpjEJyuxyLwFgGJecqCvz0dLNlFq3 6yNInGzcjutp4h2L6rX+ZvDBHbP9VeOuqHfreY6y/ErQd/W7mjJWLsdeq+NZat4e6g4W dnGDdfNQ+H+xbWa4ZJ9DmZcKkoTYXscewyTrB3ROb6fh/hnHiaLTBFNXXk3zVOwN3M/0 +h/LE461wig9fqwBla8p2fBOsutbHE+nq0Qtfj9ScGhQ/o8OdTnS1w3Io2MoSi0UKvCb SmznosAarcvIkP39RWxQ/Sb5W6CW/vLK9RQ9RQlc95GmiNByiscv20v6eZDrGT1o8A9U 4+wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2FGqCOVfkpzowDZt4/Fy+u6iA8qzCWM7JaotDYSHDR0=; b=tNB0uugRs80oBvJdoDEfCh/hbHMei5KqUqkSGAOvXCKu7ZiSdT2S0+ooDUnIGvoYBr kUPO3clGTsOHSfmcjJ+nSwYvzYRIZZW2CrzhCMynep5kPLlb7i0cKJuckn/H2AjyNrkU ZxKXQww3j9UWOF87qweqGi/R/X5EJhjNcM09fxgSiBalnepy+93TRkQA8sKTNHZDJhJs kNpJQ6vCO/Ots+ge7TYW9IsQSuWu+tgfTGq7n3XZqHrEVTTKxJx49gCh+5cTmEMylJW3 fw241xVAs8vfMVvx8EjapIZ//l1syFrCcUNVtnp7A6OLG+OUNn3WcNYlpGMG0KdOI3DK b3lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Bj4NYgbc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si2969573ejk.629.2020.10.28.02.58.34; Wed, 28 Oct 2020 02:58:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Bj4NYgbc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2901936AbgJ0O3a (ORCPT + 99 others); Tue, 27 Oct 2020 10:29:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:56052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759339AbgJ0O3Y (ORCPT ); Tue, 27 Oct 2020 10:29:24 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4E3412225E; Tue, 27 Oct 2020 14:29:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603808963; bh=4jv+YtlfZaOIqjyRlJVzYg08CQ4sDQgFECkoM0Jy+3U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bj4NYgbcEUI3fnA2tjML3xCB5AuBlrhrPWnfPRjjV/7tvXD+cO7e/Z1IWW7bE1x0z pErf2dJ2sYK4I9IdovTUdIA+qBNKgNe1L2OeEoFnOZr3fvHDzaR8iyzdd2feJIrQxJ kjbG0nLvBZ3nx7p9C6YEmlt4AxwUIvw1Go91a0jQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Venkatesh Ellapu , Vinay Kumar Yadav , Jakub Kicinski Subject: [PATCH 5.4 026/408] chelsio/chtls: correct netdevice for vlan interface Date: Tue, 27 Oct 2020 14:49:24 +0100 Message-Id: <20201027135456.273205183@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vinay Kumar Yadav [ Upstream commit 81519d1f7df7ed1bd5b1397540c8884438f57ae2 ] Check if netdevice is a vlan interface and find real vlan netdevice. Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition") Signed-off-by: Venkatesh Ellapu Signed-off-by: Vinay Kumar Yadav Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/crypto/chelsio/chtls/chtls_cm.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/crypto/chelsio/chtls/chtls_cm.c +++ b/drivers/crypto/chelsio/chtls/chtls_cm.c @@ -1053,6 +1053,9 @@ static struct sock *chtls_recv_sock(stru ndev = n->dev; if (!ndev) goto free_dst; + if (is_vlan_dev(ndev)) + ndev = vlan_dev_real_dev(ndev); + port_id = cxgb4_port_idx(ndev); csk = chtls_sock_create(cdev);