Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1584251lqt; Wed, 20 Mar 2024 08:13:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDQLrmhFleEb6vL39Qf1WBZqvjo0qPum4yA9NfL2gbJzynRbCBZU0CkxQ1fg3Dgtt6vMLg+MwUHGu0AS8NNNziGJ8qToDIOsJ/yzHwCQ== X-Google-Smtp-Source: AGHT+IEZZ37nvkQlWw6lDEWGawuALOJgKAb1a8pz9Wx/vKDrpiUt8AwKMAD6TXPQ9hVexnbScJvP X-Received: by 2002:a05:6a00:1995:b0:6e9:ca7d:cbc3 with SMTP id d21-20020a056a00199500b006e9ca7dcbc3mr452088pfl.25.1710947599079; Wed, 20 Mar 2024 08:13:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710947599; cv=pass; d=google.com; s=arc-20160816; b=IOvzAYyMhAPCLZvuOk8DtS7yPsBLt2ItfWrct9ZX2alSPgm8MBwEzxrEClg2WUE5EU /s9P265mQ1UG/nESHi2HbNK/o5zE8UC1Vx+4uGmBZe0wunyKpepZ0GcW8FOldXO1aArC grfbrdw948Ec74wqz+qCQ0/cYQnmkUPsCoRgQ2aLuEio+cdYWisWnPqUk+gr3TkCEGYz 8MIDyDv9lHkWlBgqmte6dG64WSt9Mx7IKMauVn3JhCJY14DVm9kqf/U26fNWF1t6C8P1 VEIHInpU0gFyQBhpbafusvLwI6njnjjrU0E2aOvEookyK53bIDS/esBJElX+Y07yRW6s a3ww== 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=D1YOUigZ032H/1z4ozAs2t77AHgioIzVm+TtWp1zuOo=; fh=wB/6espkHHXGUOiaHl9nBcPLC4ToDsNxGuwWhPvzoAU=; b=L4LoFO/Cw1wtKByqEO2OF7f3bQ5DhkOlO1VCDSgWER9d5AiEIWLHCxo7gC8iT+RbGl NLCwwX4j8xARXl1sNIgg5/7JdUSOVynz+K5BN+uUIKZA5sWCZ9kvYaO2ynCxLQT96eju FjwoHlfAdgjUrb4mujfbtFJkwKYhzDbOLJzTj2eznyf6Df9D/pSZOMg5738LPzDw465D AZiXpNy8H/l4jbrN78t/gzzr7L79Y34pPhw0OcFUEANjxlvpy5lWutbNMq3jLz14oJeW nNVegkDbZXEEAq8pqwfg2c/u85L5ZG1DgEyZ1vWFZHBZ54JllqDwQkta1QA8T6leJBv6 Albw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Kt8qapt7; 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-4988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4988-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 9-20020a631549000000b005e49bf549b2si12576239pgv.523.2024.03.20.08.13.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 08:13:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Kt8qapt7; 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-4988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4988-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 9D846281D41 for ; Wed, 20 Mar 2024 15:13:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D0DD481DF; Wed, 20 Mar 2024 15:13:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Kt8qapt7" 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 3F2034DA1A; Wed, 20 Mar 2024 15:13:09 +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=1710947592; cv=none; b=M5sgx/b7cyzL0N1FIVd15prj0hUTc0eog4JJD4DfM//CcyEp2OABRqq5X81lzxdumf1LD2JMa8v3yFwdPbGw8DzK9wqRu6ZsUbpV0irSRMRvByUZkyhoLv6HvXfkOLs7qCYhbMisbcEa4aRG58hArOSD0zEMyU5cJb4FKbKs0/w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710947592; c=relaxed/simple; bh=pcGxRvY/FbBvBlq97QB2rq5HTC92beOMYNwfDm8kMEY=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=OD7RrS4V8MKoDpw5nXgdIDBg/9xrQ+fyPpeBuTtAT1UPYEI3t5L2KiDuEl++tYxG0mfKzG7JHNvYeG4Pv/mYz8V0a5D6B1m+qyHlbFnfl57QSJJynnRZpumFZa06XZjSu5Q5vHbh73f04zom5r30DcwIe1VmpylCE6DDPtm5KRg= 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=Kt8qapt7; 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42KEk4k5003864; Wed, 20 Mar 2024 15:12:49 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=D1YOUigZ032H/1z4ozAs2t77AHgioIzVm+TtWp1zuOo=; b=Kt 8qapt7ufd0OQx13srzzsbnT9KvPuHggjZiFmhQWTtpzZ7fuYLIb4wkGrmqX6RGDG Rc1duXWK14KJjXhdOX62pJBvfoEA9E/TgHfCkKcSHudS5m3/aTtMiFo60X01uBuv thB47g7Ct+V6vzwji5jyArPCnt9asMr+hhNvI+WewvdeQmp2j05vAwbuCjLgOoNw jQeYJf6GtV3Kl/LUkhMsle+uZ52t82m9xTk4vV62uUVDOFu54XR6/dz1oC/X4C+H bozfSe/O2mmTCdURveUvk5LMMHoXYmNVn7vHslc3ah4rA33EGkZW88oVYoXJiGUd bUgCcZxUWKP6qtYKCGkg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x01br85fy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Mar 2024 15:12:48 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42KFCl7l027483 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Mar 2024 15:12:47 GMT Received: from [10.110.120.226] (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; Wed, 20 Mar 2024 08:12:47 -0700 Message-ID: <9fcdb857-da62-4832-ae11-043fe993e4ad@quicinc.com> Date: Wed, 20 Mar 2024 08:12:46 -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] ath10k: allocate dummy net_device dynamically Content-Language: en-US To: Breno Leitao , Kalle Valo , Jeff Johnson CC: , , "open list:NETWORKING DRIVERS (WIRELESS)" , "open list:QUALCOMM ATHEROS ATH10K WIRELESS DRIVER" , open list References: <20240319104754.2535294-1-leitao@debian.org> From: Jeff Johnson In-Reply-To: <20240319104754.2535294-1-leitao@debian.org> 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: q7s0hFZrLjK3gu1dnGtitAhln06Gey-B X-Proofpoint-ORIG-GUID: q7s0hFZrLjK3gu1dnGtitAhln06Gey-B 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-20_10,2024-03-18_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 priorityscore=1501 phishscore=0 suspectscore=0 malwarescore=0 clxscore=1015 mlxlogscore=943 lowpriorityscore=0 bulkscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403140001 definitions=main-2403200121 On 3/19/2024 3:47 AM, Breno Leitao wrote: > Embedding net_device into structures prohibits the usage of flexible > arrays in the net_device structure. For more details, see the discussion > at [1]. > > Un-embed the net_device from struct ath10k by converting it > into a pointer. Then use the leverage alloc_netdev() to allocate the > net_device object at ath10k_core_create(). The free of the device occurs > at ath10k_core_destroy(). > > [1] https://lore.kernel.org/all/20240229225910.79e224cf@kernel.org/ > > Signed-off-by: Breno Leitao NAK this based upon the ath11k patch results. As suggested there we should just use kmalloc/kfree to match the existing logic. /jeff