DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ice: fix item number when pattern has ETH
@ 2019-07-15  9:02 Wei Zhao
  2019-07-16  1:13 ` Zhang, Qi Z
  2019-07-16  2:08 ` [dpdk-dev] [PATCH v2] " Wei Zhao
  0 siblings, 2 replies; 5+ messages in thread
From: Wei Zhao @ 2019-07-15  9:02 UTC (permalink / raw)
  To: dev; +Cc: qi.z.zhang, wei zhao

When pattern has ETH, maybe it will contain
MAC and ethertype two kinds of lookup parameters,
so add more item number for memory malloc.

Signed-off-by: wei zhao <wei.zhao1@intel.com>
---
 drivers/net/ice/ice_switch_filter.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c
index 5424223..6ec50fb 100644
--- a/drivers/net/ice/ice_switch_filter.c
+++ b/drivers/net/ice/ice_switch_filter.c
@@ -435,6 +435,8 @@ ice_create_switch_filter(struct ice_pf *pf,
 			tun_type = ICE_SW_TUN_VXLAN;
 		if (item->type == RTE_FLOW_ITEM_TYPE_NVGRE)
 			tun_type = ICE_SW_TUN_NVGRE;
+		if (item->type == RTE_FLOW_ITEM_TYPE_ETH)
+			item_num++;
 	}
 	rule_info.tun_type = tun_type;
 
-- 
2.7.5


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

end of thread, other threads:[~2019-07-16  7:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-15  9:02 [dpdk-dev] [PATCH] net/ice: fix item number when pattern has ETH Wei Zhao
2019-07-16  1:13 ` Zhang, Qi Z
2019-07-16  2:08 ` [dpdk-dev] [PATCH v2] " Wei Zhao
2019-07-16  2:36   ` [dpdk-dev] [PATCH v3] " Wei Zhao
2019-07-16  7:30     ` Zhang, Qi Z

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