Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3448947pxb; Mon, 4 Apr 2022 17:19:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymwey5CndTX4VUF7JrapXv2xZd4k3nHHR1yM9paTLJGOTWwOvHZVLoIb4QQMS4HDNzITlq X-Received: by 2002:a65:5b84:0:b0:398:fd62:6497 with SMTP id i4-20020a655b84000000b00398fd626497mr604558pgr.179.1649117949767; Mon, 04 Apr 2022 17:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649117949; cv=none; d=google.com; s=arc-20160816; b=w2tWk0yZmDATY9c+c7myf/40Rb7nn4qaQb91ee/smmUj0xd4fBS7Tq8F8DlfQGYjrG 42x1vts52V/45uN4i5l8DfrXrS8u7CyJQdbprNKlJKlc5ddxpM0APohK8SEitqaT++wM XY3VXIZ+CoiWMjcQPWwVhigkPWzLGXiTsl2+b/IAluPpVInn76McwcqhbfEg4ewnDwQT pdVcTcRn5bnsva5uHurlckAWekbHUQA7IMUgE7S8S3lUUz0/L5/xsjbxVlnCds3AV6zs l5ep0BbrhPDNJpexqxOx7MxkBOdF+eQFhjoyk3xbCefjoR4LHVAjyJu+fqkiqTmmFiL+ 9Cag== 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:date:to:from:subject:message-id :dkim-signature; bh=Rew0cdTpnke9CgROpUBMb6MHmpkMBoERLKmsDQMqusQ=; b=Exg/Id7RDhxQILXGJ3Hcw2G2QEmHG3xnSMr1OIRQTM3gexyvwYCd//MGPf5FSs+36d C6892JsPDIRnlCfWsbrvzOnOjOwlgjHbHkDDDGuEKzB5GzQu00AZKowKxNmN14r/MkH4 9BZQfm6Q4F/UluN9KHBdMHONUFFC22ykMvfU07xlsKmfU0VswPMlX1B8JM2ZvA0ym3CS QCPWIwaeI5d+eiL64P2vYmsxvLEW1JKFJSSalwoNSoLDJZNqizelLITSgdthXqTIP51h 5SgIpzFGJ0uRCyCuwaFK+X+S18aVvSM3Cb4/WoFOFK2Vf1pCt0SO73XotE9f2x3CJdwj Sk4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=pCrHQc0P; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r9-20020a17090aa08900b001bd14e01f69si416590pjp.87.2022.04.04.17.19.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:19:09 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=pCrHQc0P; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4736070063; Mon, 4 Apr 2022 16:45:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351404AbiDDNYj (ORCPT + 69 others); Mon, 4 Apr 2022 09:24:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241154AbiDDNYi (ORCPT ); Mon, 4 Apr 2022 09:24:38 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2646B3DA7D for ; Mon, 4 Apr 2022 06:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=Rew0cdTpnke9CgROpUBMb6MHmpkMBoERLKmsDQMqusQ=; t=1649078562; x=1650288162; b=pCrHQc0PSXtiwniy1802ZLfp9Eku/fw89cZhMk8uTn4IsAH ct4WQVtxZUqcDeDXdIDrGa66lUh+4n0aK77fF9W4bjBQAdWtjmp4NIGsLo6gHPix/yc9VJOmN9jAa Jqb9Ld7Ya9j2IlYJPs6QIEjcajhXoUVwj86uqHaJtjp7ESfGI9oE7j/rHE7IQgLuo0bwIshkekyGD Bia4Skv6g/HxSRl815yBtfJiwaK4nu6A0I3rZf28O95t4b6++FFJEx4zzmqwEEjl17i1wlgJtTmGW JGJlzc/EBcZ9M/KzYP1looiSGBC5ZEwts5FpQZajudlgLrYmL3AyE+Kunr3ZLY/A==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1nbMfH-004tcr-R5; Mon, 04 Apr 2022 15:22:39 +0200 Message-ID: <467e7f83270a9b1f8e2b32f27b48607e2c2ff480.camel@sipsolutions.net> Subject: Re: [RFC v2] mac80211: prepare sta handling for MLO support From: Johannes Berg To: Sriram R , linux-wireless@vger.kernel.org Date: Mon, 04 Apr 2022 15:22:38 +0200 In-Reply-To: <1648555198-8065-1-git-send-email-quic_srirrama@quicinc.com> References: <1648555198-8065-1-git-send-email-quic_srirrama@quicinc.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-wireless@vger.kernel.org On Tue, 2022-03-29 at 17:29 +0530, Sriram R wrote: > Currently in mac80211 each STA object is represented > using sta_info datastructure with the associated > STA specific information and drivers access ieee80211_sta > part of it. > > With MLO (Multi Link Operation) support being added > in 802.11be standard, though the association is logically > with a single Multi Link capable STA, at the physical level > communication can happen via different advertised > links (uniquely identified by Channel, operating class, > BSSID) and hence the need to handle multiple link > STA parameters within a composite sta_info object > called the MLD STA. The different link STA part of > MLD STA are identified using the link address which can > be same or different as the MLD STA address and unique > link id based on the link vif. > > To support extension of such a model, the sta_info > datastructure is modified to hold multiple link STA > objects with link specific params currently within > sta_info moved to this new structure. Similarly this is > done for ieee80211_sta as well which will be accessed > within mac80211 as well as by drivers, hence trivial > driver changes are expected to support this. > > For current non MLO supported drivers, only one link STA > is present and link information is accessed via 'deflink' > member. > > Note for MLO supported drivers: > In mac80211 ops, the link id can be fetched from the > passed link vif struct (TBD) and corresponding link STA > within ieee80211_sta can be accessed. If the vif passed to > the driver is a MLD vif in any case, it implies all > the affliated link vif and its link STA needs to > be handled for the particular mac80211 op. > > In mac80211 for MLO usage, in cases where we need link sta(ex. to > get MLD STA from link address in 802.11 header) needs a new > lookup function to search for link sta address, This is TBD. > For legacy driver too this will work directly since the > address in sta_info and link_sta_info are same. > MLD supported drivers need to pass the link id or link > address and pubsta for ethernet mode to find the link sta. > Stats are accumulated per link sta and finally aggregated > if mld sta stats is required. These will be supported along > with MLO support patches. > > Currently in mac80211, all link STA info are accessed directly > via deflink. These will be updated to access via link pointers > indexed by link id with MLO support patches, with link id > being 0 for non MLO supported cases. > I think this looks fine - want to send it as a PATCH? I think I'll just apply the spatch directly. If there's any needed fixups beyond the spatch that might be good to know too. johannes