From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50088.outbound.protection.outlook.com [40.107.5.88]) by dpdk.org (Postfix) with ESMTP id 20F711B726 for ; Thu, 18 Apr 2019 03:28:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bdQ3jt/RD44sx0SP0MF5ylBBfJo3vw7FTUqppin2U8M=; b=txAS9OUXmxiA7WEYKyZwP1Hmue6YuNuRJ6NH4HKktzYgEZspjQEa31CYwYaj2Plst5rYahtAJjzyYbo0aL/J6Tmm9mN/EXdykAKPdAZwWOS6Jx6vZavRz2WbjspOGTUJXgWSDh3IDr7yOqiEIsnSeGNSxuNl83JFc+3QtqyhuSw= Received: from DB3PR0502MB3980.eurprd05.prod.outlook.com (52.134.72.27) by DB3PR0502MB3977.eurprd05.prod.outlook.com (52.134.70.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Thu, 18 Apr 2019 01:28:16 +0000 Received: from DB3PR0502MB3980.eurprd05.prod.outlook.com ([fe80::6072:43be:7c2d:103a]) by DB3PR0502MB3980.eurprd05.prod.outlook.com ([fe80::6072:43be:7c2d:103a%3]) with mapi id 15.20.1813.011; Thu, 18 Apr 2019 01:28:16 +0000 From: Yongseok Koh To: Ori Kam CC: Shahaf Shuler , Matan Azrad , Slava Ovsiienko , Moti Haimovsky , "dev@dpdk.org" Thread-Topic: [PATCH 9/9] net/mlx5: add drop action to Direct Verbs E-Switch Thread-Index: AQHU8wbyXdQV4XiUrUeobBusuf99BaZBJeYA Date: Thu, 18 Apr 2019 01:28:16 +0000 Message-ID: <20190418012807.GF31179@mtidpdk.mti.labs.mlnx> References: <1555276357-4892-1-git-send-email-orika@mellanox.com> <1555276357-4892-10-git-send-email-orika@mellanox.com> In-Reply-To: <1555276357-4892-10-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR11CA0108.namprd11.prod.outlook.com (2603:10b6:a03:f4::49) To DB3PR0502MB3980.eurprd05.prod.outlook.com (2603:10a6:8:10::27) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 442a0606-491d-4620-f4dc-08d6c39d2192 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600141)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:DB3PR0502MB3977; x-ms-traffictypediagnostic: DB3PR0502MB3977: x-microsoft-antispam-prvs: x-forefront-prvs: 0011612A55 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(346002)(376002)(366004)(39860400002)(189003)(199004)(6512007)(9686003)(53936002)(316002)(99286004)(52116002)(4326008)(54906003)(6246003)(25786009)(6486002)(76176011)(6436002)(6862004)(256004)(5660300002)(71190400001)(478600001)(71200400001)(229853002)(33656002)(1076003)(6636002)(476003)(81166006)(68736007)(8676002)(66066001)(8936002)(446003)(11346002)(2906002)(97736004)(102836004)(6506007)(486006)(86362001)(386003)(26005)(14454004)(186003)(7736002)(305945005)(81156014)(3846002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB3977; H:DB3PR0502MB3980.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: wdg0LHoZOzIZO8ihKV+qheDjCc7SZHqNip0Grcu02Qgbh/Ro4gu3mO5OBrK3DYcH5wqXgVeO25G3aIL9M3u8Kk43h1I6fgGi6tiPXRjP02w/B0Jj3yx6vB6HXyCbP9nZ8jO2yiRb1oy55jkYhBpCcLjNcbHsALTY7fImRBWyd/VpOS6e+ifMrRJI2bLZZkgD37TVMNA6lPpkTpUHIvyZWzyUyW/s+D7rLtyuyN5+ufMqhe4CIGcDXlMRDz06/6jaa53UqZvtbDGZ8ZjEi5pWHmnhRszTv/K0JahwiF9nq/GClrBv9yLjqlxe3YqGpgMcOQvQSasgsXpLRZ65J3PUhBHeIMhCqINLd9FNe4jxNgJHLxLjy1euYut7LOMIYLoPfYmL8zghQEZUySHp3OhxRpidWoB6TjDi3rSpWtn6lVA= Content-Type: text/plain; charset="us-ascii" Content-ID: <7B67B5028855014C87C04668BA302C18@eurprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 442a0606-491d-4620-f4dc-08d6c39d2192 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 01:28:16.4527 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB3977 Subject: Re: [dpdk-dev] [PATCH 9/9] net/mlx5: add drop action to Direct Verbs E-Switch X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2019 01:28:18 -0000 On Sun, Apr 14, 2019 at 09:12:37PM +0000, Ori Kam wrote: > This commit adds support for drop action when creating E-Switch flow > using DV. >=20 > Signed-off-by: Ori Kam > --- > drivers/net/mlx5/mlx5.c | 9 +++++++++ > drivers/net/mlx5/mlx5.h | 1 + > drivers/net/mlx5/mlx5_flow_dv.c | 26 ++++++++++++++++---------- > drivers/net/mlx5/mlx5_glue.c | 12 ++++++++++++ > drivers/net/mlx5/mlx5_glue.h | 1 + > 5 files changed, 39 insertions(+), 10 deletions(-) >=20 > diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c > index 938ba1c..e3c6d24 100644 > --- a/drivers/net/mlx5/mlx5.c > +++ b/drivers/net/mlx5/mlx5.c > @@ -357,6 +357,7 @@ struct mlx5_dev_spawn_data { > goto error; > } > sh->fdb_ns =3D ns; > + sh->drop_action =3D mlx5_glue->dr_create_flow_action_drop(); > } > #endif > sh->dv_refcnt++; > @@ -377,6 +378,10 @@ struct mlx5_dev_spawn_data { > mlx5_glue->dr_destroy_ns(sh->fdb_ns); > sh->fdb_ns =3D NULL; > } > + if (sh->drop_action) { > + mlx5_glue->destroy_flow_action(sh->drop_action); > + sh->drop_action =3D NULL; > + } > return err; > #else > (void)priv; > @@ -417,6 +422,10 @@ struct mlx5_dev_spawn_data { > mlx5_glue->dr_destroy_ns(sh->fdb_ns); > sh->fdb_ns =3D NULL; > } > + if (sh->drop_action) { > + mlx5_glue->destroy_flow_action(sh->drop_action); > + sh->drop_action =3D NULL; > + } > #endif > pthread_mutex_destroy(&sh->dv_mutex); > #else > diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h > index 016984d..fd85b9d 100644 > --- a/drivers/net/mlx5/mlx5.h > +++ b/drivers/net/mlx5/mlx5.h > @@ -275,6 +275,7 @@ struct mlx5_ibv_shared { > /* RX Direct Rules tables. */ > void *tx_ns; /* TX Direct Rules name space handle. */ > struct mlx5_flow_tbl_resource tx_tbl[MLX5_MAX_TABLES]; > + void *drop_action; /* Pointer to drop action. */ Better to mention esw here? E.g. esw_drop_action. > /* TX Direct Rules tables/ */ > LIST_HEAD(matchers, mlx5_flow_dv_matcher) matchers; > LIST_HEAD(encap_decap, mlx5_flow_dv_encap_decap_resource) encaps_decaps= ; > diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow= _dv.c > index d4dc439..4a8e894 100644 > --- a/drivers/net/mlx5/mlx5_flow_dv.c > +++ b/drivers/net/mlx5/mlx5_flow_dv.c > @@ -4062,6 +4062,7 @@ struct field_modify_info modify_tcp[] =3D { > { > struct mlx5_flow_dv *dv; > struct mlx5_flow *dev_flow; > + struct mlx5_priv *priv =3D dev->data->dev_private; > int n; > int err; > =20 > @@ -4069,17 +4070,22 @@ struct field_modify_info modify_tcp[] =3D { > dv =3D &dev_flow->dv; > n =3D dv->actions_n; > if (flow->actions & MLX5_FLOW_ACTION_DROP) { > - dv->hrxq =3D mlx5_hrxq_drop_new(dev); > - if (!dv->hrxq) { > - rte_flow_error_set > - (error, errno, > - RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL, > - "cannot get drop hash queue"); > - goto error; > + if (flow->transfer) > + dv->actions[n++] =3D priv->sh->drop_action; > + else { > + dv->hrxq =3D mlx5_hrxq_drop_new(dev); > + if (!dv->hrxq) { > + rte_flow_error_set > + (error, errno, > + RTE_FLOW_ERROR_TYPE_UNSPECIFIED, > + NULL, > + "cannot get drop hash queue"); > + goto error; > + } > + dv->actions[n++] =3D > + mlx5_glue->dv_create_flow_action_dest_ibv_qp > + (dv->hrxq->qp); > } > - dv->actions[n++] =3D > - mlx5_glue->dv_create_flow_action_dest_ibv_qp > - (dv->hrxq->qp); This seems to be conflicting to your previous fix, which is: "net/mlx5: fix release of jump to queue action" Please rebase. Thanks, Yongseok > } else if (flow->actions & > (MLX5_FLOW_ACTION_QUEUE | MLX5_FLOW_ACTION_RSS)) { > struct mlx5_hrxq *hrxq; > diff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c > index 117190f..b32cd09c 100644 > --- a/drivers/net/mlx5/mlx5_glue.c > +++ b/drivers/net/mlx5/mlx5_glue.c > @@ -394,6 +394,16 @@ > } > =20 > static void * > +mlx5_glue_dr_create_flow_action_drop(void) > +{ > +#ifdef HAVE_MLX5DV_DR_ESWITCH > + return mlx5dv_dr_create_action_drop(); > +#else > + return NULL; > +#endif > +} > + > +static void * > mlx5_glue_dr_create_flow_tbl(void *ns, uint32_t level) > { > #ifdef HAVE_MLX5DV_DR > @@ -861,6 +871,8 @@ > mlx5_glue_dr_create_flow_action_dest_flow_tbl, > .dr_create_flow_action_dest_vport =3D > mlx5_glue_dr_create_flow_action_dest_vport, > + .dr_create_flow_action_drop =3D > + mlx5_glue_dr_create_flow_action_drop, > .dr_create_flow_tbl =3D mlx5_glue_dr_create_flow_tbl, > .dr_destroy_flow_tbl =3D mlx5_glue_dr_destroy_flow_tbl, > .dr_create_ns =3D mlx5_glue_dr_create_ns, > diff --git a/drivers/net/mlx5/mlx5_glue.h b/drivers/net/mlx5/mlx5_glue.h > index 26f5cb3..1d06583 100644 > --- a/drivers/net/mlx5/mlx5_glue.h > +++ b/drivers/net/mlx5/mlx5_glue.h > @@ -147,6 +147,7 @@ struct mlx5_glue { > struct ibv_cq *(*cq_ex_to_cq)(struct ibv_cq_ex *cq); > void *(*dr_create_flow_action_dest_flow_tbl)(void *tbl); > void *(*dr_create_flow_action_dest_vport)(void *ns, uint32_t vport); > + void *(*dr_create_flow_action_drop)(); > void *(*dr_create_flow_tbl)(void *ns, uint32_t level); > int (*dr_destroy_flow_tbl)(void *tbl); > void *(*dr_create_ns)(struct ibv_context *ctx, > --=20 > 1.8.3.1 >=20 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id B0942A00E6 for ; Thu, 18 Apr 2019 03:28:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1C0391B767; Thu, 18 Apr 2019 03:28:19 +0200 (CEST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50088.outbound.protection.outlook.com [40.107.5.88]) by dpdk.org (Postfix) with ESMTP id 20F711B726 for ; Thu, 18 Apr 2019 03:28:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bdQ3jt/RD44sx0SP0MF5ylBBfJo3vw7FTUqppin2U8M=; b=txAS9OUXmxiA7WEYKyZwP1Hmue6YuNuRJ6NH4HKktzYgEZspjQEa31CYwYaj2Plst5rYahtAJjzyYbo0aL/J6Tmm9mN/EXdykAKPdAZwWOS6Jx6vZavRz2WbjspOGTUJXgWSDh3IDr7yOqiEIsnSeGNSxuNl83JFc+3QtqyhuSw= Received: from DB3PR0502MB3980.eurprd05.prod.outlook.com (52.134.72.27) by DB3PR0502MB3977.eurprd05.prod.outlook.com (52.134.70.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Thu, 18 Apr 2019 01:28:16 +0000 Received: from DB3PR0502MB3980.eurprd05.prod.outlook.com ([fe80::6072:43be:7c2d:103a]) by DB3PR0502MB3980.eurprd05.prod.outlook.com ([fe80::6072:43be:7c2d:103a%3]) with mapi id 15.20.1813.011; Thu, 18 Apr 2019 01:28:16 +0000 From: Yongseok Koh To: Ori Kam CC: Shahaf Shuler , Matan Azrad , Slava Ovsiienko , Moti Haimovsky , "dev@dpdk.org" Thread-Topic: [PATCH 9/9] net/mlx5: add drop action to Direct Verbs E-Switch Thread-Index: AQHU8wbyXdQV4XiUrUeobBusuf99BaZBJeYA Date: Thu, 18 Apr 2019 01:28:16 +0000 Message-ID: <20190418012807.GF31179@mtidpdk.mti.labs.mlnx> References: <1555276357-4892-1-git-send-email-orika@mellanox.com> <1555276357-4892-10-git-send-email-orika@mellanox.com> In-Reply-To: <1555276357-4892-10-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR11CA0108.namprd11.prod.outlook.com (2603:10b6:a03:f4::49) To DB3PR0502MB3980.eurprd05.prod.outlook.com (2603:10a6:8:10::27) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 442a0606-491d-4620-f4dc-08d6c39d2192 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600141)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:DB3PR0502MB3977; x-ms-traffictypediagnostic: DB3PR0502MB3977: x-microsoft-antispam-prvs: x-forefront-prvs: 0011612A55 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(346002)(376002)(366004)(39860400002)(189003)(199004)(6512007)(9686003)(53936002)(316002)(99286004)(52116002)(4326008)(54906003)(6246003)(25786009)(6486002)(76176011)(6436002)(6862004)(256004)(5660300002)(71190400001)(478600001)(71200400001)(229853002)(33656002)(1076003)(6636002)(476003)(81166006)(68736007)(8676002)(66066001)(8936002)(446003)(11346002)(2906002)(97736004)(102836004)(6506007)(486006)(86362001)(386003)(26005)(14454004)(186003)(7736002)(305945005)(81156014)(3846002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB3977; H:DB3PR0502MB3980.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: wdg0LHoZOzIZO8ihKV+qheDjCc7SZHqNip0Grcu02Qgbh/Ro4gu3mO5OBrK3DYcH5wqXgVeO25G3aIL9M3u8Kk43h1I6fgGi6tiPXRjP02w/B0Jj3yx6vB6HXyCbP9nZ8jO2yiRb1oy55jkYhBpCcLjNcbHsALTY7fImRBWyd/VpOS6e+ifMrRJI2bLZZkgD37TVMNA6lPpkTpUHIvyZWzyUyW/s+D7rLtyuyN5+ufMqhe4CIGcDXlMRDz06/6jaa53UqZvtbDGZ8ZjEi5pWHmnhRszTv/K0JahwiF9nq/GClrBv9yLjqlxe3YqGpgMcOQvQSasgsXpLRZ65J3PUhBHeIMhCqINLd9FNe4jxNgJHLxLjy1euYut7LOMIYLoPfYmL8zghQEZUySHp3OhxRpidWoB6TjDi3rSpWtn6lVA= Content-Type: text/plain; charset="UTF-8" Content-ID: <7B67B5028855014C87C04668BA302C18@eurprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 442a0606-491d-4620-f4dc-08d6c39d2192 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 01:28:16.4527 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB3977 Subject: Re: [dpdk-dev] [PATCH 9/9] net/mlx5: add drop action to Direct Verbs E-Switch X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190418012816.vTXo_UQ19EnHrroD4VM-NetI6snQ-gSJZF25e4dro9E@z> On Sun, Apr 14, 2019 at 09:12:37PM +0000, Ori Kam wrote: > This commit adds support for drop action when creating E-Switch flow > using DV. >=20 > Signed-off-by: Ori Kam > --- > drivers/net/mlx5/mlx5.c | 9 +++++++++ > drivers/net/mlx5/mlx5.h | 1 + > drivers/net/mlx5/mlx5_flow_dv.c | 26 ++++++++++++++++---------- > drivers/net/mlx5/mlx5_glue.c | 12 ++++++++++++ > drivers/net/mlx5/mlx5_glue.h | 1 + > 5 files changed, 39 insertions(+), 10 deletions(-) >=20 > diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c > index 938ba1c..e3c6d24 100644 > --- a/drivers/net/mlx5/mlx5.c > +++ b/drivers/net/mlx5/mlx5.c > @@ -357,6 +357,7 @@ struct mlx5_dev_spawn_data { > goto error; > } > sh->fdb_ns =3D ns; > + sh->drop_action =3D mlx5_glue->dr_create_flow_action_drop(); > } > #endif > sh->dv_refcnt++; > @@ -377,6 +378,10 @@ struct mlx5_dev_spawn_data { > mlx5_glue->dr_destroy_ns(sh->fdb_ns); > sh->fdb_ns =3D NULL; > } > + if (sh->drop_action) { > + mlx5_glue->destroy_flow_action(sh->drop_action); > + sh->drop_action =3D NULL; > + } > return err; > #else > (void)priv; > @@ -417,6 +422,10 @@ struct mlx5_dev_spawn_data { > mlx5_glue->dr_destroy_ns(sh->fdb_ns); > sh->fdb_ns =3D NULL; > } > + if (sh->drop_action) { > + mlx5_glue->destroy_flow_action(sh->drop_action); > + sh->drop_action =3D NULL; > + } > #endif > pthread_mutex_destroy(&sh->dv_mutex); > #else > diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h > index 016984d..fd85b9d 100644 > --- a/drivers/net/mlx5/mlx5.h > +++ b/drivers/net/mlx5/mlx5.h > @@ -275,6 +275,7 @@ struct mlx5_ibv_shared { > /* RX Direct Rules tables. */ > void *tx_ns; /* TX Direct Rules name space handle. */ > struct mlx5_flow_tbl_resource tx_tbl[MLX5_MAX_TABLES]; > + void *drop_action; /* Pointer to drop action. */ Better to mention esw here? E.g. esw_drop_action. > /* TX Direct Rules tables/ */ > LIST_HEAD(matchers, mlx5_flow_dv_matcher) matchers; > LIST_HEAD(encap_decap, mlx5_flow_dv_encap_decap_resource) encaps_decaps= ; > diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow= _dv.c > index d4dc439..4a8e894 100644 > --- a/drivers/net/mlx5/mlx5_flow_dv.c > +++ b/drivers/net/mlx5/mlx5_flow_dv.c > @@ -4062,6 +4062,7 @@ struct field_modify_info modify_tcp[] =3D { > { > struct mlx5_flow_dv *dv; > struct mlx5_flow *dev_flow; > + struct mlx5_priv *priv =3D dev->data->dev_private; > int n; > int err; > =20 > @@ -4069,17 +4070,22 @@ struct field_modify_info modify_tcp[] =3D { > dv =3D &dev_flow->dv; > n =3D dv->actions_n; > if (flow->actions & MLX5_FLOW_ACTION_DROP) { > - dv->hrxq =3D mlx5_hrxq_drop_new(dev); > - if (!dv->hrxq) { > - rte_flow_error_set > - (error, errno, > - RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL, > - "cannot get drop hash queue"); > - goto error; > + if (flow->transfer) > + dv->actions[n++] =3D priv->sh->drop_action; > + else { > + dv->hrxq =3D mlx5_hrxq_drop_new(dev); > + if (!dv->hrxq) { > + rte_flow_error_set > + (error, errno, > + RTE_FLOW_ERROR_TYPE_UNSPECIFIED, > + NULL, > + "cannot get drop hash queue"); > + goto error; > + } > + dv->actions[n++] =3D > + mlx5_glue->dv_create_flow_action_dest_ibv_qp > + (dv->hrxq->qp); > } > - dv->actions[n++] =3D > - mlx5_glue->dv_create_flow_action_dest_ibv_qp > - (dv->hrxq->qp); This seems to be conflicting to your previous fix, which is: "net/mlx5: fix release of jump to queue action" Please rebase. Thanks, Yongseok > } else if (flow->actions & > (MLX5_FLOW_ACTION_QUEUE | MLX5_FLOW_ACTION_RSS)) { > struct mlx5_hrxq *hrxq; > diff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c > index 117190f..b32cd09c 100644 > --- a/drivers/net/mlx5/mlx5_glue.c > +++ b/drivers/net/mlx5/mlx5_glue.c > @@ -394,6 +394,16 @@ > } > =20 > static void * > +mlx5_glue_dr_create_flow_action_drop(void) > +{ > +#ifdef HAVE_MLX5DV_DR_ESWITCH > + return mlx5dv_dr_create_action_drop(); > +#else > + return NULL; > +#endif > +} > + > +static void * > mlx5_glue_dr_create_flow_tbl(void *ns, uint32_t level) > { > #ifdef HAVE_MLX5DV_DR > @@ -861,6 +871,8 @@ > mlx5_glue_dr_create_flow_action_dest_flow_tbl, > .dr_create_flow_action_dest_vport =3D > mlx5_glue_dr_create_flow_action_dest_vport, > + .dr_create_flow_action_drop =3D > + mlx5_glue_dr_create_flow_action_drop, > .dr_create_flow_tbl =3D mlx5_glue_dr_create_flow_tbl, > .dr_destroy_flow_tbl =3D mlx5_glue_dr_destroy_flow_tbl, > .dr_create_ns =3D mlx5_glue_dr_create_ns, > diff --git a/drivers/net/mlx5/mlx5_glue.h b/drivers/net/mlx5/mlx5_glue.h > index 26f5cb3..1d06583 100644 > --- a/drivers/net/mlx5/mlx5_glue.h > +++ b/drivers/net/mlx5/mlx5_glue.h > @@ -147,6 +147,7 @@ struct mlx5_glue { > struct ibv_cq *(*cq_ex_to_cq)(struct ibv_cq_ex *cq); > void *(*dr_create_flow_action_dest_flow_tbl)(void *tbl); > void *(*dr_create_flow_action_dest_vport)(void *ns, uint32_t vport); > + void *(*dr_create_flow_action_drop)(); > void *(*dr_create_flow_tbl)(void *ns, uint32_t level); > int (*dr_destroy_flow_tbl)(void *tbl); > void *(*dr_create_ns)(struct ibv_context *ctx, > --=20 > 1.8.3.1 >=20