ethdev: use correct QinQ offload flag

Message ID 1568373289-5629-1-git-send-email-viveksharma@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series ethdev: use correct QinQ offload flag |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/iol-dpdk_compile_ovs success Compile Testing PASS
ci/iol-dpdk_compile success Compile Testing PASS
ci/iol-dpdk_compile_spdk success Compile Testing PASS
ci/intel-Performance success Performance Testing PASS
ci/mellanox-Performance success Performance Testing PASS

Commit Message

Vivek Kumar Sharma Sept. 13, 2019, 11:14 a.m. UTC
  From: Vivek Sharma <viveksharma@marvell.com>

Use correct flag for indicating QinQ strip rx offload.

Fixes: dfebfc9882fb ("ethdev: support dynamic configuration of QinQ strip")
Cc: stable@dpdk.org

Signed-off-by: Vivek Sharma <viveksharma@marvell.com>
---
 lib/librte_ethdev/rte_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Vivek Kumar Sharma Sept. 29, 2019, 4:29 a.m. UTC | #1
Ping!


Thanks,
Vivek
  
Andrew Rybchenko Sept. 29, 2019, 11:43 a.m. UTC | #2
On 9/29/19 7:29 AM, Vivek Kumar Sharma wrote:
> From: Vivek Sharma <viveksharma@marvell.com>
>
> Use correct flag for indicating QinQ strip rx offload.
>
> Fixes: dfebfc9882fb ("ethdev: support dynamic configuration of QinQ strip")
> Cc: stable@dpdk.org
>
> Signed-off-by: Vivek Sharma <viveksharma@marvell.com>

Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
  
Ferruh Yigit Oct. 9, 2019, 8:48 a.m. UTC | #3
On 9/29/2019 12:43 PM, Andrew Rybchenko wrote:
> On 9/29/19 7:29 AM, Vivek Kumar Sharma wrote:
>> From: Vivek Sharma <viveksharma@marvell.com>
>>
>> Use correct flag for indicating QinQ strip rx offload.
>>
>> Fixes: dfebfc9882fb ("ethdev: support dynamic configuration of QinQ strip")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Vivek Sharma <viveksharma@marvell.com>
> 
> Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
> 

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

Patch

diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c
index 17d183e..bfc0468 100644
--- a/lib/librte_ethdev/rte_ethdev.c
+++ b/lib/librte_ethdev/rte_ethdev.c
@@ -2823,7 +2823,7 @@  rte_eth_dev_get_vlan_offload(uint16_t port_id)
 		ret |= ETH_VLAN_EXTEND_OFFLOAD;
 
 	if (*dev_offloads & DEV_RX_OFFLOAD_QINQ_STRIP)
-		ret |= DEV_RX_OFFLOAD_QINQ_STRIP;
+		ret |= ETH_QINQ_STRIP_OFFLOAD;
 
 	return ret;
 }