DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] test/virtual_pmd: Add DEV_RX_OFFLOAD_CRC_STRIP to virtual driver
@ 2018-07-04  1:31 Phil Yang
  2018-07-04  9:34 ` Ferruh Yigit
  0 siblings, 1 reply; 4+ messages in thread
From: Phil Yang @ 2018-07-04  1:31 UTC (permalink / raw)
  To: dev; +Cc: nd, ferruh.yigit

Add DEV_RX_OFFLOAD_CRC_STRIP to virtual drivers since they don't
use CRC at all, when an application requires this offload virtual
PMDs should not return error.

Fixes: b219c8c("test: enable HW CRC strip by default")

Signed-off-by: Phil Yang <phil.yang@arm.com>
---
 test/test/virtual_pmd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c
index f8ddc2d..591b309 100644
--- a/test/test/virtual_pmd.c
+++ b/test/test/virtual_pmd.c
@@ -91,6 +91,7 @@ virtual_ethdev_info_get(struct rte_eth_dev *dev __rte_unused,
 	dev_info->max_tx_queues = (uint16_t)512;
 
 	dev_info->min_rx_bufsize = 0;
+	dev_info->rx_offload_capa = DEV_RX_OFFLOAD_CRC_STRIP;
 }
 
 static int
-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] test/virtual_pmd: Add DEV_RX_OFFLOAD_CRC_STRIP to virtual driver
  2018-07-04  1:31 [dpdk-dev] [PATCH] test/virtual_pmd: Add DEV_RX_OFFLOAD_CRC_STRIP to virtual driver Phil Yang
@ 2018-07-04  9:34 ` Ferruh Yigit
  2018-07-04  9:45   ` Ferruh Yigit
  0 siblings, 1 reply; 4+ messages in thread
From: Ferruh Yigit @ 2018-07-04  9:34 UTC (permalink / raw)
  To: dev-bounces, dev; +Cc: nd

On 7/4/2018 2:31 AM, dev-bounces@dpdk.org wrote:
> Add DEV_RX_OFFLOAD_CRC_STRIP to virtual drivers since they don't
> use CRC at all, when an application requires this offload virtual
> PMDs should not return error.

Agreed.

Can you please check following patch [1] that has been applied to next-net which
adds DEV_RX_OFFLOAD_CRC_STRIP to virtual devices. Is this solves your issue?

[1]
https://patches.dpdk.org/patch/41957/

> 
> Fixes: b219c8c("test: enable HW CRC strip by default")
> 
> Signed-off-by: Phil Yang <phil.yang@arm.com>
> ---
>  test/test/virtual_pmd.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c
> index f8ddc2d..591b309 100644
> --- a/test/test/virtual_pmd.c
> +++ b/test/test/virtual_pmd.c
> @@ -91,6 +91,7 @@ virtual_ethdev_info_get(struct rte_eth_dev *dev __rte_unused,
>  	dev_info->max_tx_queues = (uint16_t)512;
>  
>  	dev_info->min_rx_bufsize = 0;
> +	dev_info->rx_offload_capa = DEV_RX_OFFLOAD_CRC_STRIP;
>  }
>  
>  static int
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] test/virtual_pmd: Add DEV_RX_OFFLOAD_CRC_STRIP to virtual driver
  2018-07-04  9:34 ` Ferruh Yigit
@ 2018-07-04  9:45   ` Ferruh Yigit
  2018-07-04 18:35     ` Ferruh Yigit
  0 siblings, 1 reply; 4+ messages in thread
From: Ferruh Yigit @ 2018-07-04  9:45 UTC (permalink / raw)
  To: dev-bounces, dev; +Cc: nd

On 7/4/2018 10:34 AM, Ferruh Yigit wrote:
> On 7/4/2018 2:31 AM, dev-bounces@dpdk.org wrote:
>> Add DEV_RX_OFFLOAD_CRC_STRIP to virtual drivers since they don't
>> use CRC at all, when an application requires this offload virtual
>> PMDs should not return error.
> 
> Agreed.
> 
> Can you please check following patch [1] that has been applied to next-net which
> adds DEV_RX_OFFLOAD_CRC_STRIP to virtual devices. Is this solves your issue?

My bad, oversight your patch. You already aware of the patch mentioned and this
is to fix a missing part there. Patch looks good, thanks.


> 
> [1]
> https://patches.dpdk.org/patch/41957/
> 
>>
>> Fixes: b219c8c("test: enable HW CRC strip by default")
>>
>> Signed-off-by: Phil Yang <phil.yang@arm.com>

Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>

>> ---
>>  test/test/virtual_pmd.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c
>> index f8ddc2d..591b309 100644
>> --- a/test/test/virtual_pmd.c
>> +++ b/test/test/virtual_pmd.c
>> @@ -91,6 +91,7 @@ virtual_ethdev_info_get(struct rte_eth_dev *dev __rte_unused,
>>  	dev_info->max_tx_queues = (uint16_t)512;
>>  
>>  	dev_info->min_rx_bufsize = 0;
>> +	dev_info->rx_offload_capa = DEV_RX_OFFLOAD_CRC_STRIP;
>>  }
>>  
>>  static int
>>
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] test/virtual_pmd: Add DEV_RX_OFFLOAD_CRC_STRIP to virtual driver
  2018-07-04  9:45   ` Ferruh Yigit
@ 2018-07-04 18:35     ` Ferruh Yigit
  0 siblings, 0 replies; 4+ messages in thread
From: Ferruh Yigit @ 2018-07-04 18:35 UTC (permalink / raw)
  To: dev-bounces, dev; +Cc: nd

On 7/4/2018 10:45 AM, Ferruh Yigit wrote:
> On 7/4/2018 10:34 AM, Ferruh Yigit wrote:
>> On 7/4/2018 2:31 AM, dev-bounces@dpdk.org wrote:
>>> Add DEV_RX_OFFLOAD_CRC_STRIP to virtual drivers since they don't
>>> use CRC at all, when an application requires this offload virtual
>>> PMDs should not return error.
<...>

>>>
>>> Fixes: b219c8c("test: enable HW CRC strip by default")
>>>
>>> Signed-off-by: Phil Yang <phil.yang@arm.com>
> 
> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>

Fixes: 3d12dceed2df ("ethdev: add new offload flag to keep CRC")

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-04 18:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-04  1:31 [dpdk-dev] [PATCH] test/virtual_pmd: Add DEV_RX_OFFLOAD_CRC_STRIP to virtual driver Phil Yang
2018-07-04  9:34 ` Ferruh Yigit
2018-07-04  9:45   ` Ferruh Yigit
2018-07-04 18:35     ` Ferruh Yigit

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).