Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp164384pxb; Wed, 22 Sep 2021 19:01:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRcJ3GXAKOD7uthNYKqJJoP2RnmEgnLkMWHRk6TRmzOdD8UhpjiTGOmcqbuEgETcS2sAVL X-Received: by 2002:a5d:9c88:: with SMTP id p8mr1821635iop.153.1632362460681; Wed, 22 Sep 2021 19:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632362460; cv=none; d=google.com; s=arc-20160816; b=nUwo5CvApJ5cmc97My44O2jrMMAL7YU+diiNq+1zJ/Yqp7RwtUZPC5ng6XtJPNXgL2 sbalifM/Z4FNMHhydSo0gLeyHo55Q3Zb+PG4Gq6lEg4RQOoVTsCvZhKfV38FzWjj6xae P6FyvZfi9ZQa+5fph7JKRkksq5xW05yvwRFPo6TSGeZG+rBYNONNvs8FZgK5rhIyT34B OJzL701th1T3GeExMzKQStsBrozSk09o+sqGsu/QSghhrCSJjgg4mWF50VztZ/6/X+ZY mRGqCYhMqzvjQXmRGikHvuVL3keQKgDBdgevnRkyUKRzu4xe48Jg5TwOY1fQElx+UIA5 E+4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=BULErLHVQJdMPODSCdmMhke1jEOXzKYKC6Do8994JJk=; b=aCOo4H5O8LLmNSuOOIbCQjldgfNlYm6zr3Y4nd+lFx7eQEjXG4M2kVgt41PTVdtzJ3 6BkGJbFOldSt1kOe37v0wLkttzC86wudlaSzFkLRverhuiMsq/M4Rsxvo62/gGYms8Fa PTxRAlKkfOAbUsiVV5X0l/uH3WfE05Eh9SXbsir1nDYdFfe+XUln+OvvC3uPsbGlb1R3 SEmEuZ08vR01flIvzKab2hoytpX2mrzmkO16Pb15NQHNNlNahbmPxS40XVd12TXmruCO 3ZYP0h0kEqLL0NUFFFUVv0vkxMx5EzjwuAevilewui6kD8fE2KQV4hnHZICwhWzScAfc RNZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gksRgCkL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay9si4784400jab.13.2021.09.22.19.00.40; Wed, 22 Sep 2021 19:01:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gksRgCkL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238860AbhIWCAO (ORCPT + 99 others); Wed, 22 Sep 2021 22:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238177AbhIWCAM (ORCPT ); Wed, 22 Sep 2021 22:00:12 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71106C061574; Wed, 22 Sep 2021 18:58:41 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id y4so4317357pfe.5; Wed, 22 Sep 2021 18:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=BULErLHVQJdMPODSCdmMhke1jEOXzKYKC6Do8994JJk=; b=gksRgCkLLXg/sUM2Nt+EIaHYcFqu2yDwCXamivVaB+0DA/g0KBjbyOobcT5xgGFwgz zQ1ICWMMVTCW29OcF6Tzc99G6ySvL0ce4jhxse4kLK7nnwCzGYUSOh3YyShHj/F5oeM+ sAnrBYWmEgOnMZWBM9renUbvSPaA6spP+NVd9EXb2rHkSjQQVaEkVjd2gup2oHAEJNPP kCd68BUu2fukXWIdkkvKHldg8tQbzUWkz3yNZQ9GPdTU681QnO/XUSAJtBEvP5l0Ol0I ncRd6Rm2iDuqsWjHF6yNNNpVg0fUnQZNW8CQXirVl7RA5BAp0NS/LDqBDqj7JgBTeFR2 8Ibw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=BULErLHVQJdMPODSCdmMhke1jEOXzKYKC6Do8994JJk=; b=nH6uxhmtWvBPCeprtc3Ghx+Z1QeAbevndgJA3Kasjg36DtnxB8GTA9ri+vfjXxn5Bf vCI0ArnpprzpUT81xxnmBXIZ4mDHOrywTiBRjVT/Aoe9AIk63TZ2f8jP7LzqSp6uS2Tg UrvmZwdtFIAnp2sVpOZyv3pKWld8PmoBC5aNP/7bHdn/RgJ5qFvDf06N2mk8TLEHUx65 unwaD7A5ztzfjWMdh6ytUDwKmoAzjZWxXytF5tvK25Ao1pSWIZ+Ijaj3Ge0rxEmJFBOj hdMTP0roaH3c8urtBOhqKj9IioX99/fJn/cu6jtwN9hM5She9Vm1d7pJSCY58matCU6o VIPw== X-Gm-Message-State: AOAM530nsDrVQrUPYUusfDPHSv22NtJF3OJ+rQGbJUvOZNstCeil9F3y RrCfiXSnJMDPoJIU4jMVnhw= X-Received: by 2002:a62:ddd8:0:b0:435:4de8:2652 with SMTP id w207-20020a62ddd8000000b004354de82652mr1708812pff.53.1632362321019; Wed, 22 Sep 2021 18:58:41 -0700 (PDT) Received: from [10.230.31.46] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id i2sm1402145pfa.34.2021.09.22.18.58.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Sep 2021 18:58:40 -0700 (PDT) Message-ID: <78621e42-e41e-3581-221f-648a93deb384@gmail.com> Date: Wed, 22 Sep 2021 18:58:28 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Subject: Re: [PATCH v4 net-next 2/8] net: mscc: ocelot: add MAC table write and lookup operations Content-Language: en-US To: Xiaoliang Yang , davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: allan.nielsen@microchip.com, joergen.andreasen@microchip.com, UNGLinuxDriver@microchip.com, vinicius.gomes@intel.com, michael.chan@broadcom.com, vishal@chelsio.com, saeedm@mellanox.com, jiri@mellanox.com, idosch@mellanox.com, alexandre.belloni@bootlin.com, kuba@kernel.org, po.liu@nxp.com, vladimir.oltean@nxp.com, leoyang.li@nxp.com, andrew@lunn.ch, vivien.didelot@gmail.com, claudiu.manoil@nxp.com References: <20210922105202.12134-1-xiaoliang.yang_1@nxp.com> <20210922105202.12134-3-xiaoliang.yang_1@nxp.com> From: Florian Fainelli In-Reply-To: <20210922105202.12134-3-xiaoliang.yang_1@nxp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/22/2021 3:51 AM, Xiaoliang Yang wrote: > From: Vladimir Oltean > > ocelot_mact_write() can be used for directly modifying an FDB entry > situated at a given row and column, as opposed to the current > ocelot_mact_learn() which calculates the row and column indices > automatically (based on a 11-bit hash derived from the {DMAC, VID} key). > > ocelot_mact_lookup() can be used to retrieve the row and column at which > an FDB entry with the given {DMAC, VID} key is found. > > Signed-off-by: Vladimir Oltean > Signed-off-by: Xiaoliang Yang Reviewed-by: Florian Fainelli -- Florian