From patchwork Wed Nov 22 18:34:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shinas Rasheed X-Patchwork-Id: 16953 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp1530628vqb; Wed, 22 Nov 2023 10:35:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKkTAcSuuNQSICGsch5SzVrX3KEvKn3OJKOlEahiH7p3kt8TvEOjWyLpfWP4VgGWhWB/x/ X-Received: by 2002:a05:6808:9b9:b0:3ae:5650:c6cf with SMTP id e25-20020a05680809b900b003ae5650c6cfmr3643941oig.48.1700678100121; Wed, 22 Nov 2023 10:35:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700678100; cv=none; d=google.com; s=arc-20160816; b=G1zYtNKdIfUw7yUQqWZWO3Cw6sNSZtvw574fVjg2sLzaqMR5wkpWB5ZYqn2chLEIVc OFN7mXYTvosWj4fTw4VtRVclHQ0tGQn2JB8Nv64+mR+23mAKN2koxnivO6lZHT0QeSlj EZDRdg1wmFnizknT0n61yeudNxNJYJI8IZVaE5WxEgTpzazeHmghf1rNRlwF6i9/RNPo j/CK+QRA+bK3N3l/5doVO3O7Es3Dem26XxXh4xF7oUpm9i5TL+Tg6ECVPD3SDYPIoRUK cAsYOjJmiS5MJTSEbFQQq2328RdTypnOaFiujL8Y6kbIWEaASRVP2lavh1SA/oaP84qK ORpQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=0GqnSZpL4E/OI68ZnBo58kjUaFbXjIqAqR9BlWTLW7g=; fh=xfjggc+iLs8pwl6xt11f/NeoRnyvAA6UwMIercpst7Y=; b=S/DuyG4ZuPp8FYCiNkyOy8/F0GmhW9loCwnRb9XE+tVtDUyT4XKu0VS3gHns2J0NkT GMxEgGpbpupTmumrK/msXbKLuXLQUK9d//0e1SUEDvIwMNALjlj6VBuZcPuwYmRVLR+r DatKeVSbcs6qO1zRyPGnybYbyU2IzcCgVQVj6zmxeIj74hKcoh6R7YUTJdMSo5O10brt i3QdOD1RccCem54+GZlTyp71ydAsnM1Z3xHatMxU16ZKRhRdqYJg33jVwcEqrQ5z0LS0 e57yQ1TNG3G8oQTjxd0Eu5iJ2nGviJJ9avYAUG3/DlVo0htJRDI5t9xKZA3r1Luv77Mx CCuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="c/Ibi1n+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id bg24-20020a056a02011800b005c219362529si11690pgb.348.2023.11.22.10.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 10:35:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="c/Ibi1n+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 83D29807C74B; Wed, 22 Nov 2023 10:34:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231488AbjKVSez (ORCPT + 99 others); Wed, 22 Nov 2023 13:34:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbjKVSey (ORCPT ); Wed, 22 Nov 2023 13:34:54 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21A31D50; Wed, 22 Nov 2023 10:34:51 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AMIT5KW019590; Wed, 22 Nov 2023 10:34:42 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=0GqnSZpL4E/OI68ZnBo58kjUaFbXjIqAqR9BlWTLW7g=; b=c/Ibi1n+X3/JmOHutygyBnb1iitVpUMCXTlGzyxZBU73au8WxltZRRk4IiKgU8K+K11W Bh/HiQ0zXZ395CcASz3D8AHjhOVmh1VZ0zv12WyUpzvfchu6nkJRFsBhr4aAOpexCHAu pcH2rKuAe5U5xOjrnts5rbvPFhR3p4s465Fc9uzLSZpxJ+vTyq8EuL1gf044LlVgT1B4 QJx9HkGYr9HEO62FeSfZYez7pUo9ENZBOXbiG+gLomzUSVU699+BC8zstyKuRrcrethZ ZkzSY9Ugi19tUvq9kr5RSrXjIRfXa5IRbA9LraywLpc4Tj0cBsQFS0ae+Z2NhNC2H/O9 PQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uhpxn00ut-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 22 Nov 2023 10:34:42 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 22 Nov 2023 10:34:39 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 22 Nov 2023 10:34:39 -0800 Received: from ubuntu-PowerEdge-T110-II.sclab.marvell.com (unknown [10.106.27.86]) by maili.marvell.com (Postfix) with ESMTP id 8B3203F7040; Wed, 22 Nov 2023 10:34:39 -0800 (PST) From: Shinas Rasheed To: , CC: , , , , , , , , , , , , Shinas Rasheed Subject: [PATCH net-next v2 0/2] Get max rx packet length and solve Date: Wed, 22 Nov 2023 10:34:33 -0800 Message-ID: <20231122183435.2510656-1-srasheed@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: QKQM7XTY9JWB2nlUHbrxiNRER0mQ8uvK X-Proofpoint-GUID: QKQM7XTY9JWB2nlUHbrxiNRER0mQ8uvK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-22_13,2023-11-22_01,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 10:34:54 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783290239782242356 X-GMAIL-MSGID: 1783290239782242356 Patchsets which resolve observed style issues in control net source files, and also implements get mtu control net api to fetch max mtu value from firmware Changes: V2: - Introduced a patch to resolve style issues as mentioned in V1 - Removed OCTEP_MAX_MTU macro, as it is redundant. V1: https://lore.kernel.org/all/20231121191224.2489474-1-srasheed@marvell.com/ Shinas Rasheed (2): octeon_ep: Solve style issues in control net files octeon_ep: get max rx packet length from firmware .../ethernet/marvell/octeon_ep/octep_config.h | 2 - .../marvell/octeon_ep/octep_ctrl_net.c | 42 ++++-- .../marvell/octeon_ep/octep_ctrl_net.h | 125 +++++++++++------- .../ethernet/marvell/octeon_ep/octep_main.c | 10 +- 4 files changed, 113 insertions(+), 66 deletions(-)