Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3054445rwe; Mon, 29 Aug 2022 05:12:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR7FzE23Zhafe6k0shPpJCxqahmUyR2lIuQmI7daYP2KEZCETl9zxAJLuBHo1CxkmWWnIqMD X-Received: by 2002:a17:90a:f48d:b0:1f7:2e00:f7f8 with SMTP id bx13-20020a17090af48d00b001f72e00f7f8mr18247828pjb.94.1661775178824; Mon, 29 Aug 2022 05:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661775178; cv=none; d=google.com; s=arc-20160816; b=lcNtIADNtMljSP58ZKrKXpzETPHmhldoUUFM3nopNWANkwXxy0K30og6Ia67RApJSh iDOAYsWNau6F6SR7ihqTMQD+ko0xDzZVUbxpeKmtISI0f8E16OnKt9qTinBu1Y0HzPIc pMSKlE7U+typLrdfRDcXxxongUPT3n5yfXPKNBvMXbsoWHl/42Iaq0a20NLepE4bieHq jeKdMqDO6Wzyi28u5wYZlQH1nDaqh+YqPU5CuYkSDkYqCRmb5JTv9mJ55i8v+skO4cPZ Uj5T5IbCfbzZjoVdgG5vgnw9h1bXMjzfbxpdQeoC8WFzj9D10XgJ/TLtK1HZAqubDBA+ 74sw== 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=siQjiEd9R+1OXBB07j3M/L/qoutBt7fcaTCeJdfjKIk=; b=lGX5ivQgliOqnsmFBH9M1tj2A3Yd8DPS3c6m2OGo847atTKzlklc28KUj4hDaIOgA8 ny/95B+PQUP0edhbez1sWVzGl1/L42mjCb7i9xzPAV+6LKrgCTKC1QjmjUboWkG2vWN3 vyhqdcF+hyiNzwhme5bGBIdKby8oMJgXJwLa6HNARct9pPN7ufy0tkd8o3B8WXyMcQZe oZbF9FXIgukK6BmulrUq8gV/T10fp798qt9R6eZryq+F6Mz1F1jLfEBkEwP1pkQyQphn 0Iv5MOoS5K94m1AjiViy56e2y9IXBYFVxVBXt2d1k9SbTX3btqnQqkVB1uQ+HnrSYe1O e7JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R8oLrNoJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j71-20020a638b4a000000b0042a08b6ae1fsi6139397pge.4.2022.08.29.05.12.47; Mon, 29 Aug 2022 05:12:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R8oLrNoJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232374AbiH2Lbr (ORCPT + 99 others); Mon, 29 Aug 2022 07:31:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232620AbiH2L3Z (ORCPT ); Mon, 29 Aug 2022 07:29:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D86173923; Mon, 29 Aug 2022 04:17:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 66493B80F98; Mon, 29 Aug 2022 11:17:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAE5CC433D6; Mon, 29 Aug 2022 11:17:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771848; bh=9k3Ex5qoa8TFnbbDZOJm1dqnsTP5F6Ia2Cp29JH5/mw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R8oLrNoJsKVv31BmPlDqqcBTLvOVZY6jK69PQyTbFc+Jv3czY7iHxWNpDS8uSjIWL ctWMqdVNdTqHEfntzd2CmvycIj5jgGEP+drO6c4gMs9ms0XeS1NRhcVrX6F4M8HvWQ G0HPyGzHMGvmOWZ6bf6AvZ6R+ONHTeUcknaC+vJs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sylwester Dziedziuch , Tony Nguyen , Sasha Levin , Gurucharan Subject: [PATCH 5.19 083/158] i40e: Fix incorrect address type for IPv6 flow rules Date: Mon, 29 Aug 2022 12:58:53 +0200 Message-Id: <20220829105812.527847841@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105808.828227973@linuxfoundation.org> References: <20220829105808.828227973@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sylwester Dziedziuch [ Upstream commit bcf3a156429306070afbfda5544f2b492d25e75b ] It was not possible to create 1-tuple flow director rule for IPv6 flow type. It was caused by incorrectly checking for source IP address when validating user provided destination IP address. Fix this by changing ip6src to correct ip6dst address in destination IP address validation for IPv6 flow type. Fixes: efca91e89b67 ("i40e: Add flow director support for IPv6") Signed-off-by: Sylwester Dziedziuch Tested-by: Gurucharan (A Contingent worker at Intel) Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c index 19704f5c8291c..22a61802a4027 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c @@ -4395,7 +4395,7 @@ static int i40e_check_fdir_input_set(struct i40e_vsi *vsi, (struct in6_addr *)&ipv6_full_mask)) new_mask |= I40E_L3_V6_DST_MASK; else if (ipv6_addr_any((struct in6_addr *) - &usr_ip6_spec->ip6src)) + &usr_ip6_spec->ip6dst)) new_mask &= ~I40E_L3_V6_DST_MASK; else return -EOPNOTSUPP; -- 2.35.1