Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp555336lqh; Thu, 28 Mar 2024 09:20:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXoslBAA92UU+62KaNbTKU7xAvJubYm5G0Z+VW4GJt3YnF+CoLE4vOQdFUUzTwefoyWuCZGyHUOQOIk1l48GPufrUx9rYb2K9n5fxACLg== X-Google-Smtp-Source: AGHT+IG6iPiZFqY2pR7nfpM4KPGTUlx4mkg10v3GlZ0D3SehHSd3ik76a8WQAAPRDvqbgK+FVgkx X-Received: by 2002:a17:90b:1a8b:b0:29b:a8a6:c6a7 with SMTP id ng11-20020a17090b1a8b00b0029ba8a6c6a7mr3021557pjb.13.1711642814530; Thu, 28 Mar 2024 09:20:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711642814; cv=pass; d=google.com; s=arc-20160816; b=p84vUlH/ZYx5pZQhilD3/C3fPO4eWOJzmQsy0y8QeSLBYTsb+6S+64OMaIXyaRNJER lj/vl6b4nPOWuwB3hvModh+C8Z/5mkJKUzrfsUbfKZpHMTB+NF9jYWPoZN5VVO1ZLwos Art6UEDtwaIOtebHuAsNTklkzXAVydQJOQ87hEP6Cfvcr/9vlw7AtAGh7d8/xxHoEoee VdHbav6ayLvtnjB8SgjKoJrWQjn2hpIEPgl4fZV6hygYmIO7BRXV1WfOqwE3z0Cjg99Z a0Cv9crivqTYwokC3/xCI/lACWilm503Mne89mLKdBqkZ9DVDRClgWu/gpZvf5sIuQJa H+mQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=qqNaIn1vdQNG08WNesydJO7U23oVtC4uv9qaa9pLUmM=; fh=/I392oyzVMNbc4WQ0E1M8Iw4HfTTnXE9NRD4cIWp2Gs=; b=jIK4UWgwxGAQ/k0MSCIBKQo7lwMcfZU0Cyrlmb6oH55RHOIWCZHZplg7uGVZi6khRT KhjC4rxbFcEqkDWpavktJidrKdNjswNxzgviYchpngudOPjGE7ReE3ZrPJ6zAGH6f8Da cWGzDgmFrsMWEnY0/Ku/2OXBpKrOpZBQssxa2xTDkvQxQ2QJ4r5x0T5mIffZV8VfrD4p vpIrTK3DLBNEJVZ54GYl3WAjXEnAom9JkBMnhtb3oEzMObJQAjLupaOLpWAIU5Re3rx0 5uYtmBH8xJLjH/SveoNax7rLhQOyzGzV0tN/1pM7Lk/RM/qkYTd4hSrjKfwPktLBXtSI wHKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IgmHZ63v; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5476-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5476-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n2-20020a654502000000b005f05c965094si1671276pgq.604.2024.03.28.09.20.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 09:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5476-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IgmHZ63v; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5476-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5476-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 372FA29552A for ; Thu, 28 Mar 2024 16:20:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5C657E787; Thu, 28 Mar 2024 16:19:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="IgmHZ63v" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 472EE8004E for ; Thu, 28 Mar 2024 16:19:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711642781; cv=none; b=Dn6ROUS1QAlqKGK7gjmMPQvK5NEV1F73xo0P5kLV4ZF1nvjdJ7VJDY+6zinJwZPVRajsncP6cEr0zUMuZ173wiwRqbDDGwlZZEVSLKaHpUdhMqmF7vDRyBq00Rk1E6t3hYq3vzgGyXMHAq+wobThWj8MITihKfHhZNxvrWhnN6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711642781; c=relaxed/simple; bh=/wAqZIkYxMgaBGJ4jlSsC5OM8vUy9SihNqGIje/w6NI=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Iuoh1fng1yQiegL2OZLrQUEO8iP4/A6MUE+HtTcrgl2iwS0HYwgOr7f7y7uA/AyAQ3YVcNRCtLvRQ/S9ClSaVsa2OF9cYdYNXycrODHgXxqjC46hSiI5GArMDd4kDCSdvPzU+ooJnl8PZ/YqxCss7zAPPqxdv2KZveDOwp66UYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=IgmHZ63v; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42SAVSoi024185; Thu, 28 Mar 2024 16:19:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=qqNaIn1vdQNG08WNesydJO7U23oVtC4uv9qaa9pLUmM=; b=Ig mHZ63v3Ti230P5scwaVODmoACh7NQU7gAY3yuyZmGiLY8yGmdFA4gCU2dPhekFl1 4BHiypY1vVm7bTgYzEQi0NKmOJmENwmMlkK/li/iDQ+A1mx1d7pb7m1cQkrBiZqc wUKdv50X12BKbY6nlQPAmxQn2OMmnKiJSr2j1yu7/8nQwlWdWk5Lqy4Bh9jZ+3vZ qkGkFjrVbTNYU8CVjMFvlEJc13VvQOis1qfmTyg+5G5Cd/80cBtObnEPAVNQCiGf tYHG9TfkH0ZjwThlPTxV2y8aJXjMpq2h94OK0jSnwF81GMYSiqSfU0wsdhNC19hJ mw5YlVUltSzc+jnbp40g== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x54r61h07-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2024 16:19:33 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42SGJWXU010035 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2024 16:19:32 GMT Received: from [10.110.124.221] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 28 Mar 2024 09:19:32 -0700 Message-ID: <7c7fa31b-fe2e-4281-8d4c-e62c39cd1b9a@quicinc.com> Date: Thu, 28 Mar 2024 09:19:31 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 06/13] wifi: nl80211: send iface combination to user space in multi-hardware wiphy Content-Language: en-US To: Johannes Berg , Karthikeyan Periyasamy , CC: , Vasanthakumar Thiagarajan References: <20240328072916.1164195-1-quic_periyasa@quicinc.com> <20240328072916.1164195-7-quic_periyasa@quicinc.com> <29fc2719d6814a8e84f5db9ad81c76116a52828b.camel@sipsolutions.net> From: Jeff Johnson In-Reply-To: <29fc2719d6814a8e84f5db9ad81c76116a52828b.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: QPY9pI_EXv5in7LVaudwa_xU0QFpehrl X-Proofpoint-ORIG-GUID: QPY9pI_EXv5in7LVaudwa_xU0QFpehrl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-28_15,2024-03-28_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 malwarescore=0 bulkscore=0 suspectscore=0 impostorscore=0 spamscore=0 mlxlogscore=991 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403280111 On 3/28/2024 6:33 AM, Johannes Berg wrote: > On Thu, 2024-03-28 at 12:59 +0530, Karthikeyan Periyasamy wrote: [...] >> + hw_combis = nla_nest_start(msg, NL80211_IFACE_COMB_PER_HW_COMB); >> + if (!hw_combis) >> + return -ENOBUFS; >> + >> + for (i = 0; i < c->n_hw_list; i++) { >> + struct nlattr *hw_combi, *limits; >> + >> + hw_combi = nla_nest_start(msg, i + 1); > > And of course the array and splitting discussions apply here too. This is where I meant to say that I believe we are trying to reuse the same structure and code as the wiphy-global combinations