Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1185829pxu; Thu, 17 Dec 2020 04:24:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1Nl2M3Prp6otBSf64invhcPZi5/W/IqOq1xwl0Vw0Ci8CkneJOXlDbSGGAz7y/4ig7EQ2 X-Received: by 2002:a05:6402:1a30:: with SMTP id be16mr39133237edb.124.1608207840705; Thu, 17 Dec 2020 04:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608207840; cv=none; d=google.com; s=arc-20160816; b=JxuFOhvowLgM+yY6PB15m/5ZrMpDmG1XS28Z8cOwgh+/vCT4dPbQl2ALNuIBQZYs9V pc09GH20lVYTeRacwFvm3JI6NUzIcyM/ju1yYSxmIRoOjfbUatq5CvKgZXTvZKIYa5lW 7LxJ7lQuNeifE6dlGo/2pm9z2JwhnJAATYjvysS9uaaif8V40id/MNH8CH/xUXF8ol5i a3NHTimJlCxRn4mh/Ob/xozugriccS/KMKaY5+T4nEe9IzSIMyjRCPud0+FYdftKIQmY lR6E1cXVNh8gNaurNkigbEd+6qrd1jBDCQwupFGisovc6MOWw0zsiELdmn2UrVh+Wvap yYlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to:dkim-signature; bh=c5SVE9vNjPb1ccgOJYbuS4CNDbGkaJ9U7nzvokb8k6I=; b=nqxWmxVkMoWsoG7ivw8l/vLjFUk2cxJX0KPEQVC4w6aEwf39HeZCX6qCCV/WMtgSia kgeVPMWFhMOy4Qoeal4zl1ULpGD7gdDXyqpQod8XevAbzHiC+Q5dv+693uJ9g/ZR+ipk rnWlyE0skf/qQckdE017GIeHrrbIz26J76pxKVO9VgdtSoYVtlCkJL2UsnxgZVO7yfwr mtxem2BA1HpGZgr7+3Pq5YJG7RIwWMZPmuiNOWR/F9oR7rkyL1iLol971/IES9eFC+5n OH/hhPPmHSuYTl36fKm11ui2CQbopXgTIQ5CkiHkzLLe80XpDRTSrdNbfad1s7Mu9kEA UhdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=maLTxpim; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si4360709edq.548.2020.12.17.04.23.36; Thu, 17 Dec 2020 04:24:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=maLTxpim; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727215AbgLQMVN (ORCPT + 99 others); Thu, 17 Dec 2020 07:21:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbgLQMVN (ORCPT ); Thu, 17 Dec 2020 07:21:13 -0500 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA155C061794 for ; Thu, 17 Dec 2020 04:20:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:Subject:From:References:Cc:To:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=c5SVE9vNjPb1ccgOJYbuS4CNDbGkaJ9U7nzvokb8k6I=; b=maLTxpimeLepnizAcvf002mnfD BFNFEzLw/GAU8l19VzS1wvrjuuAs0mYXYB4zp+RucJJsO7/DpZsrBcoQSBREQRTdXbGxowk8hSTlj SiNOJgll3blEVioKSLPpwDtAHK3R0Uyps3Km05TgFkxL2vjpTI3IpEaUJlY5250PYFcg=; Received: from p4ff13815.dip0.t-ipconnect.de ([79.241.56.21] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1kpsGU-0000rI-F3; Thu, 17 Dec 2020 13:20:14 +0100 To: =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net References: <20201216204316.44498-1-nbd@nbd.name> <20201216204316.44498-2-nbd@nbd.name> <87czz8bqbj.fsf@toke.dk> From: Felix Fietkau Subject: Re: [PATCH 2/7] mac80211: force calculation of software hash for tx fair queueing Message-ID: Date: Thu, 17 Dec 2020 13:20:11 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <87czz8bqbj.fsf@toke.dk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-12-17 12:54, Toke Høiland-Jørgensen wrote: > Felix Fietkau writes: > >> Depending on the source, a hardware calculated hash may not provide the >> same level of collision resistance. > > This seems like it would have performance implications? > > Also, this can potentially discard information from tunnels that > preserve the hash before encapsulation (we added support for this to > Wireguard which had some nice effects on queueing of encapsulated > traffic). If the hash was calculated in software using the flow dissector, it will be preserved, even if it went through a few virtual interfaces. The only hashes discarded are hardware generated ones. - Felix