Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1083100lqm; Thu, 2 May 2024 05:02:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsNj8QbliHkFgX3hyGECJILcJzCU9HXb66u4gS0MhojWXmkldmageeTh4GMpkKzLeXVQIvCqjkypxSfEp2oH3HJRWwvdyK6mjMKx1fJg== X-Google-Smtp-Source: AGHT+IEkHW8gpuNGZH2SVO/+JVT0IxRauRFb6CvCsi0/pGHypApThG2YrftLEBF35O46BbLyshrx X-Received: by 2002:a17:902:ce84:b0:1e5:d021:cf02 with SMTP id f4-20020a170902ce8400b001e5d021cf02mr7699062plg.36.1714651377936; Thu, 02 May 2024 05:02:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714651377; cv=pass; d=google.com; s=arc-20160816; b=HRhBPeY+QIzpe2zqnmzsx/I+wbht8/EQ5WsIw9Ao0Nw7PafUvrpRpaF0gzEEIEe0xu z7jq7pChNjC5zzzIPy/93Ndl6KmgUvsnmPp8l7n1lHGZnKovB1Ybwb1F9RDZrGNQcd5y lB/YaoMfqRKScMk+4ihGQU8DOVNWfA10CqHVGkSa4MmwroF31aFXMfAZmS4UPR/tVPfj 77wLZWlonTi9gXiHiRKUqwStAKAuZTilQgq6aralQgejzYIWSguSivZv/dxzUURW8GS+ AL12vgGkESN/XyIdricmfr09wgvxmj2Jd6Pe+8So/swZnIq1A8NigwRD0v8ILtBMcJyG tFZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=XfXBI1UCEocbU9bnKa0OdkUDyFRe6Bw2+hz1Q8popRQ=; fh=a4A6xLnodMDhirCls25cxdz4NhUI9QN78mfJTlGkqLo=; b=dC1c6S/WdDHFfAEYfK3ytNnLNjYw/qhZ97cwqQCrxVKV016UdL7ucqLYJzwYpB1NGn 8zpvBXE3PkBxgecPePJQAA2GYKpF/YdSoAS5GiCN5MqQUm85UyiML4epbCQhbGCEe+5s rBH+MzqBFXYZnYLKHQJ1XGrjCKgKvK9fiRqU+jYN/T6axMkFdoWrtYdR3Cm4gki9Xkf9 XfNXIcvqe5wUZIZ4GHfE44mJf+WB3UqD03qB3zbUWgoAHtLuAfzL58vY5kejfggbB59s bulRDCHG/NzWERR817Abk1eDnX+OBcFBnvaEnaC8uPzU7PRTrf3GmroYl/PmIAL40vSY Z1uw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=S1gJ4OIp; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-166421-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166421-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ma3-20020a170903094300b001ec3018e739si904764plb.34.2024.05.02.05.02.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 05:02:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166421-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=S1gJ4OIp; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-166421-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166421-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1CE14B22141 for ; Thu, 2 May 2024 12:02:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B5CD78276; Thu, 2 May 2024 12:02:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="S1gJ4OIp" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 87EF96341B for ; Thu, 2 May 2024 12:02:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714651357; cv=none; b=gHCqCuUAri44WqPPDLl0TRHH2nxv8KjTY4ZKkTpvLmLD3x5ZjHvIlM4ciAM51Ihr6PXCjZCz2l/9B69tLepExlckTQ8eZg9/LASDxXuxfIJIIyddnH7f329gWP7HNhHk9/UY3nBK7p7QK4VCS6Fq+nR+DG6MnEbs0AtTxhlS56s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714651357; c=relaxed/simple; bh=5LCtxE1foP4p42pbTXYapXqnE7N4+pBu402ePprtg7k=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=bNuyiKR/8blcRR1tskrL4f0RYp4AtuHygXrus6jdxUGoPrHOYUVrkOyrBYAqxm16pOTDJWMqqOCzLZhYX+V0sXgLGQAKcuAIEIovFLiXEGQHRwHd06Dmwxm9jYVdgvLbDLCy7+OZH3LUPzyxzY2KywOplqDMhaCBBLvN0A1XtFU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=S1gJ4OIp; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714651354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=XfXBI1UCEocbU9bnKa0OdkUDyFRe6Bw2+hz1Q8popRQ=; b=S1gJ4OIpsY/cYbkBBlE3L1xQktd4SwWzRnW538cPkf8n6GIk7AdJ3iib6RT2J9KVD4Jrwk gt+dhpKU3uYAWZO+u8D979LXwDKOYXImLgIQ/ANQlD9qNp7IHhcodzbIRgwAFNRggd9fYC D16B1J25sMaD5O4KV1MoBnGXOtudobo= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-265-3-O3ajsfPHyu1-BpL3NCkA-1; Thu, 02 May 2024 08:02:33 -0400 X-MC-Unique: 3-O3ajsfPHyu1-BpL3NCkA-1 Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2d8647f923fso12193831fa.0 for ; Thu, 02 May 2024 05:02:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714651351; x=1715256151; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XfXBI1UCEocbU9bnKa0OdkUDyFRe6Bw2+hz1Q8popRQ=; b=dN+foWHbVmQ0mKhFyY1B8KI0A/6LYfXcgQ7Q0bAkihXo2UrlY/QBPO7HRVbzreqNrd y/wmYJ65vPluOtnWr1HAn0k2hiS2Twx5gxMO2c6JqfKW11vaZDxRc68NsZoLRFawzAPR 8LtBRzM0vN+SALNYKgKMftM/WMHu+9sokidLGRvINXpSsFTYXh4OJiuP0OjTc6LFPa8d ADxKdec/vk6wu0CtVbabh3elPSHmKeJ54rW7p7RkPxIjNx7hLPaYE0cK/lBpaHxP91IS A33DejwxSN7PuYQVlc2HlVHZyRsrBpKt4h47tY/O/KzFPyyVsWM+jxTqWt5Blg7OmFKv xQBQ== X-Forwarded-Encrypted: i=1; AJvYcCVTHhFgcZgaH2/WUN5+rM2MxRaxT0xNGhzb8G/HQjB7Pz+EJxiJbantjfDkh16GCUCY+l4OV7ip4kiuRW6rj2P6puh4bg+p8j9EFuq/ X-Gm-Message-State: AOJu0YxiqGqAOLCtP58MdAnc+HqQ4JANVBJQY05KvCsPBJAcUPlKzAzi OA26ZQMXERRIZL19Np1ZW1BGWecbJWAl+83JFqLzjylL0915EzsqwnE4JuyeYnp1UjXeGqjE0ft NgZZoa0zaQD/2jTELRjzMLrLIUfG/4IEv+CZGw8GTuwM8c+D7GYltC7vNGkV60Q== X-Received: by 2002:a2e:8005:0:b0:2d8:5d78:d4f5 with SMTP id j5-20020a2e8005000000b002d85d78d4f5mr3230866ljg.4.1714651351529; Thu, 02 May 2024 05:02:31 -0700 (PDT) X-Received: by 2002:a2e:8005:0:b0:2d8:5d78:d4f5 with SMTP id j5-20020a2e8005000000b002d85d78d4f5mr3230841ljg.4.1714651351085; Thu, 02 May 2024 05:02:31 -0700 (PDT) Received: from gerbillo.redhat.com ([2a0d:3344:1b52:6510::f71]) by smtp.gmail.com with ESMTPSA id l3-20020a05600c4f0300b0041b43d2d745sm1735008wmq.7.2024.05.02.05.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 05:02:30 -0700 (PDT) Message-ID: Subject: Re: [PATCH net-next v5] net: ti: icssg_prueth: add TAPRIO offload support From: Paolo Abeni To: MD Danish Anwar , Dan Carpenter , Andrew Lunn , Jan Kiszka , Simon Horman , Niklas Schnelle , Randy Dunlap , Diogo Ivo , Wolfram Sang , Vignesh Raghavendra , Richard Cochran , Roger Quadros , Jakub Kicinski , Eric Dumazet , "David S. Miller" Cc: linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, srk@ti.com, r-gunasekaran@ti.com, Roger Quadros , Vinicius Costa Gomes , Vladimir Oltean Date: Thu, 02 May 2024 14:02:28 +0200 In-Reply-To: <74be4e2e25644e0b65ac1894ccb9c2d0971bb643.camel@redhat.com> References: <20240429103022.808161-1-danishanwar@ti.com> <74be4e2e25644e0b65ac1894ccb9c2d0971bb643.camel@redhat.com> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73tKv51nIpu4SAC1Zmnm3x4u9r22mbMDr0uWqDqwhsvkanYmn4umDKc1ZkBnDIbbumd40x9CKgG6ogVlLYe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8kHD9WF+m7dPlRVY7soqEYXylyCOXr5516upH8vVBmqweCIxXSWqPAhQq8d3hB/Ww2A0H0PBTN1REVw8pRLNApEA7C2nX6RW0XmA53PIQvAP0EAakWsqHoKZ5WdpeOcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Thu, 2024-05-02 at 13:59 +0200, Paolo Abeni wrote: > On Mon, 2024-04-29 at 16:00 +0530, MD Danish Anwar wrote: > > +static int emac_taprio_replace(struct net_device *ndev, > > + struct tc_taprio_qopt_offload *taprio) > > +{ > > + struct prueth_emac *emac =3D netdev_priv(ndev); > > + struct tc_taprio_qopt_offload *est_new; > > + int ret; > > + > > + if (taprio->cycle_time_extension) { > > + NL_SET_ERR_MSG_MOD(taprio->extack, "Cycle time extension not support= ed"); > > + return -EOPNOTSUPP; > > + } > > + > > + if (taprio->cycle_time < TAS_MIN_CYCLE_TIME) { > > + NL_SET_ERR_MSG_FMT_MOD(taprio->extack, "cycle_time %llu is less than= min supported cycle_time %d", > > + taprio->cycle_time, TAS_MIN_CYCLE_TIME); > > + return -EINVAL; > > + } > > + > > + if (taprio->num_entries > TAS_MAX_CMD_LISTS) { > > + NL_SET_ERR_MSG_FMT_MOD(taprio->extack, "num_entries %lu is more than= max supported entries %d", > > + taprio->num_entries, TAS_MAX_CMD_LISTS); > > + return -EINVAL; > > + } > > + > > + if (emac->qos.tas.taprio_admin) > > + devm_kfree(&ndev->dev, emac->qos.tas.taprio_admin); >=20 > it looks like 'qos.tas.taprio_admin' is initialized from > taprio_offload_get(), so it should be free with taprio_offload_free(), > right? >=20 > > + > > + est_new =3D devm_kzalloc(&ndev->dev, > > + struct_size(est_new, entries, taprio->num_entries), > > + GFP_KERNEL); > > + if (!est_new) > > + return -ENOMEM; >=20 > Why are you allocating 'est_new'? it looks like it's not used > anywhere?!?=20 >=20 > > + > > + emac->qos.tas.taprio_admin =3D taprio_offload_get(taprio); > > + ret =3D tas_update_oper_list(emac); > > + if (ret) > > + return ret; >=20 > Should the above clear 'taprio_admin' on error, as well?=20 Side note: the patch itself is rather big, I guess it would be better split it. You can make a small series putting the the struct definition move in a separate patch.=20 Thanks, Paolo