[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z65zwAq/aJjqDaY1@lzaremba-mobl.ger.corp.intel.com>
Date: Thu, 13 Feb 2025 23:35:44 +0100
From: Larysa Zaremba <larysa.zaremba@...el.com>
To: Tony Nguyen <anthony.l.nguyen@...el.com>
CC: <intel-wired-lan@...ts.osuosl.org>, Przemek Kitszel
<przemyslaw.kitszel@...el.com>, Andrew Lunn <andrew+netdev@...n.ch>, "David
S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, "Jakub
Kicinski" <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>, Michal Swiatkowski
<michal.swiatkowski@...ux.intel.com>, Mateusz Pacuszka
<mateuszx.pacuszka@...el.com>
Subject: Re: [PATCH iwl-next v3 5/6] ice: support egress drop rules on PF
On Wed, Feb 12, 2025 at 01:36:18PM -0800, Tony Nguyen wrote:
>
>
> On 2/8/2025 5:22 AM, Larysa Zaremba wrote:
>
> ...
>
> > @@ -8393,20 +8395,42 @@ ice_setup_tc_cls_flower(struct ice_netdev_priv *np,
> > }
> > /**
> > - * ice_setup_tc_block_cb - callback handler registered for TC block
> > + * ice_setup_tc_block_cb_ingress - callback handler for ingress TC block
> > * @type: TC SETUP type
> > * @type_data: TC flower offload data that contains user input
> > * @cb_priv: netdev private data
> > */
> > static int
> > -ice_setup_tc_block_cb(enum tc_setup_type type, void *type_data, void *cb_priv)
> > +ice_setup_tc_block_cb_ingress(enum tc_setup_type type, void *type_data,
> > + void *cb_priv)
>
> Could you fix the kdocs on the ones that you modify? Most of them are
> missing the Return:
>
> > {
> > struct ice_netdev_priv *np = cb_priv;
> > switch (type) {
> > case TC_SETUP_CLSFLOWER:
> > return ice_setup_tc_cls_flower(np, np->vsi->netdev,
> > - type_data);
> > + type_data, true);
> > + default:
> > + return -EOPNOTSUPP;
> > + }
> > +}
> > +
> > +/**
> > + * ice_setup_tc_block_cb_egress - callback handler for egress TC block
> > + * @type: TC SETUP type
> > + * @type_data: TC flower offload data that contains user input
> > + * @cb_priv: netdev private data
> > + */
> > +static int
> > +ice_setup_tc_block_cb_egress(enum tc_setup_type type, void *type_data,
> > + void *cb_priv)
>
> And correct the ones that you're adding.
>
> I believe there's issues of this or the previous in patches 2-5.
>
> Thanks,
> Tony
>
Fixed in v4. Thanks.
> > +{
> > + struct ice_netdev_priv *np = cb_priv;
> > +
> > + switch (type) {
> > + case TC_SETUP_CLSFLOWER:
> > + return ice_setup_tc_cls_flower(np, np->vsi->netdev,
> > + type_data, false);
> > default:
> > return -EOPNOTSUPP;
> > }
>
Powered by blists - more mailing lists