DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]  [PATCH v1] net: i40e: add VLAN tag size to RXMAX
@ 2015-08-31  6:41 Vlad Zolotarov
  2015-09-01  5:34 ` Zhang, Helin
  0 siblings, 1 reply; 4+ messages in thread
From: Vlad Zolotarov @ 2015-08-31  6:41 UTC (permalink / raw)
  To: dev

HW requires it regardless the presence of the VLAN tag in the received frame.
Otherwise Rx frames are being filtered out on the MTU-4 boundary.

Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com>
---
 drivers/net/i40e/i40e_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c
index eae4ab0..22aaeb1 100644
--- a/drivers/net/i40e/i40e_rxtx.c
+++ b/drivers/net/i40e/i40e_rxtx.c
@@ -3156,7 +3156,7 @@ i40e_rx_queue_init(struct i40e_rx_queue *rxq)
 		rx_ctx.hsplit_0 = I40E_HEADER_SPLIT_ALL;
 	else
 		rx_ctx.hsplit_0 = I40E_HEADER_SPLIT_NONE;
-	rx_ctx.rxmax = rxq->max_pkt_len;
+	rx_ctx.rxmax = rxq->max_pkt_len + I40E_VLAN_TAG_SIZE;
 	rx_ctx.tphrdesc_ena = 1;
 	rx_ctx.tphwdesc_ena = 1;
 	rx_ctx.tphdata_ena = 1;
-- 
2.1.0

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

end of thread, other threads:[~2016-05-13  2:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-31  6:41 [dpdk-dev] [PATCH v1] net: i40e: add VLAN tag size to RXMAX Vlad Zolotarov
2015-09-01  5:34 ` Zhang, Helin
2016-05-06 15:51   ` Nikita Kozlov
2016-05-13  2:33     ` Wu, Jingjing

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