From: Dongdong Liu <liudongdong3@huawei.com>
To: Chengwen Feng <fengchengwen@huawei.com>, <thomas@monjalon.net>,
<ferruh.yigit@amd.com>, <andrew.rybchenko@oktetlabs.ru>
Cc: <dev@dpdk.org>, <yisen.zhuang@huawei.com>,
<aman.deep.singh@intel.com>, <yuying.zhang@intel.com>
Subject: Re: [PATCH 1/2] net/hns3: declare support rule keep capability
Date: Thu, 15 Dec 2022 09:56:41 +0800 [thread overview]
Message-ID: <d369bbbd-7951-6df2-896b-7ff4c995ec3e@huawei.com> (raw)
In-Reply-To: <20221215014142.15750-2-fengchengwen@huawei.com>
Acked-by: Dongdong Liu <liudongdong3@huawei.com>
Thanks,
Dongdong
On 2022/12/15 9:41, Chengwen Feng wrote:
> The driver supports create flow rules when device is stopped, and
> re-setup flow rules when restarting, so declare support
> RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP.
>
> The driver also supports to create indirect actions when device is
> stopped, and keeps the indirect actions when restarting, so declare
> support RTE_ETH_DEV_CAPA_FLOW_SHARED_OBJECT_KEEP.
>
> Cc: stable@dpdk.org
>
> Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
> ---
> drivers/net/hns3/hns3_common.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/hns3/hns3_common.c b/drivers/net/hns3/hns3_common.c
> index 7adc6a4972..da0a481f15 100644
> --- a/drivers/net/hns3/hns3_common.c
> +++ b/drivers/net/hns3/hns3_common.c
> @@ -90,10 +90,11 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info)
> if (hns3_dev_get_support(hw, OUTER_UDP_CKSUM))
> info->tx_offload_capa |= RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM;
>
> + info->dev_capa = RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP |
> + RTE_ETH_DEV_CAPA_FLOW_SHARED_OBJECT_KEEP;
> if (hns3_dev_get_support(hw, INDEP_TXRX))
> - info->dev_capa = RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP |
> - RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP;
> - info->dev_capa &= ~RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP;
> + info->dev_capa |= RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP |
> + RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP;
>
> if (hns3_dev_get_support(hw, PTP))
> info->rx_offload_capa |= RTE_ETH_RX_OFFLOAD_TIMESTAMP;
>
next prev parent reply other threads:[~2022-12-15 1:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-15 1:41 [PATCH 0/2] net/hns3: " Chengwen Feng
2022-12-15 1:41 ` [PATCH 1/2] net/hns3: declare " Chengwen Feng
2022-12-15 1:56 ` Dongdong Liu [this message]
2022-12-15 1:41 ` [PATCH 2/2] app/testpmd: add disable-flow-flush parameter Chengwen Feng
2023-01-23 15:01 ` Singh, Aman Deep
2023-01-25 18:34 ` Ferruh Yigit
2023-01-25 18:37 ` Ferruh Yigit
2023-01-26 12:29 ` Ori Kam
2023-01-31 7:55 ` Singh, Aman Deep
2023-01-31 17:05 ` [PATCH 0/2] net/hns3: support rule keep capability Ferruh Yigit
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=d369bbbd-7951-6df2-896b-7ff4c995ec3e@huawei.com \
--to=liudongdong3@huawei.com \
--cc=aman.deep.singh@intel.com \
--cc=andrew.rybchenko@oktetlabs.ru \
--cc=dev@dpdk.org \
--cc=fengchengwen@huawei.com \
--cc=ferruh.yigit@amd.com \
--cc=thomas@monjalon.net \
--cc=yisen.zhuang@huawei.com \
--cc=yuying.zhang@intel.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;
as well as URLs for NNTP newsgroup(s).