From: Parvathi Pudi <parvathi@couthit.com>
To: horms <horms@kernel.org>
Cc: parvathi <parvathi@couthit.com>, danishanwar <danishanwar@ti.com>,
rogerq <rogerq@kernel.org>,
andrew+netdev <andrew+netdev@lunn.ch>,
davem <davem@davemloft.net>, edumazet <edumazet@google.com>,
kuba <kuba@kernel.org>, pabeni <pabeni@redhat.com>,
robh <robh@kernel.org>, krzk+dt <krzk+dt@kernel.org>,
conor+dt <conor+dt@kernel.org>, nm <nm@ti.com>,
ssantosh <ssantosh@kernel.org>, tony <tony@atomide.com>,
richardcochran <richardcochran@gmail.com>,
glaroque <glaroque@baylibre.com>,
schnelle <schnelle@linux.ibm.com>,
m-karicheri2 <m-karicheri2@ti.com>,
s hauer <s.hauer@pengutronix.de>,
rdunlap <rdunlap@infradead.org>,
diogo ivo <diogo.ivo@siemens.com>,
basharath <basharath@couthit.com>,
jacob e keller <jacob.e.keller@intel.com>,
m-malladi <m-malladi@ti.com>,
javier carrasco cruz <javier.carrasco.cruz@gmail.com>,
afd <afd@ti.com>, s-anna <s-anna@ti.com>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
netdev <netdev@vger.kernel.org>,
devicetree <devicetree@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
pratheesh <pratheesh@ti.com>, Prajith Jayarajan <prajith@ti.com>,
Vignesh Raghavendra <vigneshr@ti.com>,
praneeth <praneeth@ti.com>, srk <srk@ti.com>,
rogerq <rogerq@ti.com>, krishna <krishna@couthit.com>,
pmohan <pmohan@couthit.com>, mohan <mohan@couthit.com>
Subject: Re: [PATCH net-next v5 07/11] net: ti: prueth: Adds support for network filters for traffic control supported by PRU-ICSS
Date: Fri, 18 Apr 2025 17:55:57 +0530 (IST) [thread overview]
Message-ID: <2126437499.1093120.1744979157393.JavaMail.zimbra@couthit.local> (raw)
In-Reply-To: <20250415195756.GI395307@horms.kernel.org>
Hi,
> On Mon, Apr 14, 2025 at 06:32:33PM +0530, Parvathi Pudi wrote:
>> From: Roger Quadros <rogerq@ti.com>
>>
>> Driver updates to enable/disable network filters and traffic control
>> features supported by the firmware running on PRU-ICSS.
>>
>> Control of the following features are now supported:
>> 1. Promiscuous mode
>> 2. Network Storm prevention
>> 3. Multicast filtering and
>> 4. VLAN filtering
>>
>> Firmware running on PRU-ICSS will go through all these filter checks
>> prior to sending the rx packets to the host.
>>
>> Ethtool or dev ioctl can be used to enable/disable these features from
>> the user space.
>>
>> Signed-off-by: Roger Quadros <rogerq@ti.com>
>> Signed-off-by: Andrew F. Davis <afd@ti.com>
>> Signed-off-by: Basharath Hussain Khaja <basharath@couthit.com>
>> Signed-off-by: Parvathi Pudi <parvathi@couthit.com>
>
> ...
>
>> diff --git a/drivers/net/ethernet/ti/icssm/icssm_prueth_dos.c
>> b/drivers/net/ethernet/ti/icssm/icssm_prueth_dos.c
>
> ...
>
>> +static int icssm_emac_configure_clsflower(struct prueth_emac *emac,
>> + struct flow_cls_offload *cls)
>> +{
>> + struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
>> + struct netlink_ext_ack *extack = cls->common.extack;
>> + const struct flow_action_entry *act;
>> + int i;
>> +
>> + flow_action_for_each(i, act, &rule->action) {
>> + switch (act->id) {
>> + case FLOW_ACTION_POLICE:
>> + return icssm_emac_flower_parse_policer
>> + (emac, extack, cls,
>> + act->police.rate_bytes_ps);
>> + default:
>> + NL_SET_ERR_MSG_MOD(extack,
>> + "Action not supported");
>> + return -EOPNOTSUPP;
>> + }
>> + }
>> + return -EOPNOTSUPP;
>
> nit: This line cannot be reached.
> I think you can just remove it.
>
> Flagged by Smatch.
>
We will cleanup this in the next version.
Thanks and Regards,
Parvathi.
next prev parent reply other threads:[~2025-04-18 12:26 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-14 11:34 [PATCH net-next v5 00/11] PRU-ICSSM Ethernet Driver Parvathi Pudi
2025-04-14 11:34 ` [PATCH net-next v5 01/11] dt-bindings: net: ti: Adds DUAL-EMAC mode support on PRU-ICSS2 for AM57xx, AM43xx and AM33xx SOCs Parvathi Pudi
2025-04-14 11:34 ` [PATCH net-next v5 02/11] net: ti: prueth: Adds ICSSM Ethernet driver Parvathi Pudi
2025-04-16 9:16 ` Simon Horman
2025-04-18 12:23 ` Parvathi Pudi
2025-04-14 11:34 ` [PATCH net-next v5 03/11] net: ti: prueth: Adds PRUETH HW and SW configuration Parvathi Pudi
2025-04-14 13:02 ` [PATCH net-next v5 04/11] net: ti: prueth: Adds link detection, RX and TX support Parvathi Pudi
2025-04-14 13:02 ` [PATCH net-next v5 05/11] net: ti: prueth: Adds ethtool support for ICSSM PRUETH Driver Parvathi Pudi
2025-04-14 13:34 ` Andrew Lunn
2025-04-16 11:59 ` Parvathi Pudi
2025-04-23 16:28 ` Simon Horman
2025-04-23 16:34 ` Simon Horman
2025-04-14 13:02 ` [PATCH net-next v5 06/11] net: ti: prueth: Adds HW timestamping support for PTP using PRU-ICSS IEP module Parvathi Pudi
2025-04-14 13:02 ` [PATCH net-next v5 07/11] net: ti: prueth: Adds support for network filters for traffic control supported by PRU-ICSS Parvathi Pudi
2025-04-15 19:57 ` Simon Horman
2025-04-18 12:25 ` Parvathi Pudi [this message]
2025-04-14 14:07 ` [PATCH net-next v5 08/11] net: ti: prueth: Adds support for RX interrupt coalescing/pacing Parvathi Pudi
2025-04-14 14:07 ` [PATCH net-next v5 09/11] net: ti: prueth: Adds power management support for PRU-ICSS Parvathi Pudi
2025-04-14 14:07 ` [PATCH net-next v5 10/11] net: ti: prueth: Adds support for PRUETH on AM33x and AM43x SOCs Parvathi Pudi
2025-04-14 14:07 ` [PATCH net-next v5 11/11] net: ti: prueth: Adds PTP OC Support for AM335x and AM437x Parvathi Pudi
2025-04-15 20:15 ` Simon Horman
2025-04-16 12:03 ` Parvathi Pudi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2126437499.1093120.1744979157393.JavaMail.zimbra@couthit.local \
--to=parvathi@couthit.com \
--cc=afd@ti.com \
--cc=andrew+netdev@lunn.ch \
--cc=basharath@couthit.com \
--cc=conor+dt@kernel.org \
--cc=danishanwar@ti.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=diogo.ivo@siemens.com \
--cc=edumazet@google.com \
--cc=glaroque@baylibre.com \
--cc=horms@kernel.org \
--cc=jacob.e.keller@intel.com \
--cc=javier.carrasco.cruz@gmail.com \
--cc=krishna@couthit.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m-karicheri2@ti.com \
--cc=m-malladi@ti.com \
--cc=mohan@couthit.com \
--cc=netdev@vger.kernel.org \
--cc=nm@ti.com \
--cc=pabeni@redhat.com \
--cc=pmohan@couthit.com \
--cc=prajith@ti.com \
--cc=praneeth@ti.com \
--cc=pratheesh@ti.com \
--cc=rdunlap@infradead.org \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=rogerq@kernel.org \
--cc=rogerq@ti.com \
--cc=s-anna@ti.com \
--cc=s.hauer@pengutronix.de \
--cc=schnelle@linux.ibm.com \
--cc=srk@ti.com \
--cc=ssantosh@kernel.org \
--cc=tony@atomide.com \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox