All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/dpaa2: change vlan strip value to offload flag
@ 2018-05-14 10:58 Shreyansh Jain
  2018-05-14 12:25 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Shreyansh Jain @ 2018-05-14 10:58 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: dev, thomas, Shreyansh Jain, sunil.kori

Fixes: 0ebce6129bc6 ("net/dpaa2: support new ethdev offload APIs")
Cc: sunil.kori@nxp.com

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
---
Note: Though checkpatch produces a warning for 80 char, this is more readable
      than splitting it across multiple lines.

 drivers/net/dpaa2/dpaa2_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c
index dc0da9617..dac086d61 100644
--- a/drivers/net/dpaa2/dpaa2_rxtx.c
+++ b/drivers/net/dpaa2/dpaa2_rxtx.c
@@ -560,7 +560,7 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 			bufs[num_rx] = eth_fd_to_mbuf(fd);
 		bufs[num_rx]->port = dev->data->port_id;
 
-		if (dev->data->dev_conf.rxmode.hw_vlan_strip)
+		if (dev->data->dev_conf.rxmode.offloads & DEV_RX_OFFLOAD_VLAN_STRIP)
 			rte_vlan_strip(bufs[num_rx]);
 
 		dq_storage++;
-- 
2.17.0

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

* Re: [PATCH] net/dpaa2: change vlan strip value to offload flag
  2018-05-14 10:58 [PATCH] net/dpaa2: change vlan strip value to offload flag Shreyansh Jain
@ 2018-05-14 12:25 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2018-05-14 12:25 UTC (permalink / raw)
  To: Shreyansh Jain; +Cc: dev, thomas, sunil.kori

On 5/14/2018 11:58 AM, Shreyansh Jain wrote:
> Fixes: 0ebce6129bc6 ("net/dpaa2: support new ethdev offload APIs")
> Cc: sunil.kori@nxp.com
> 
> Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>

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


> ---
> Note: Though checkpatch produces a warning for 80 char, this is more readable
>       than splitting it across multiple lines.

Agreed.

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

end of thread, other threads:[~2018-05-14 12:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-14 10:58 [PATCH] net/dpaa2: change vlan strip value to offload flag Shreyansh Jain
2018-05-14 12:25 ` Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.