Skip to contentSkip to conversation

net/i40e: change the timing of FDIR input set configuration

RFC New Chenxu Di 1 participant 1 message Nov 10, 2020 Network drivers

lore
Share & tools
lore

Chenxu Di

author
#0 lore raw

RFC 1/1 net/i40e: change the timing of FDIR input set configuration

The configuration of FDIR input set should not be set during flow validate. It should be set when flow create.

---
 drivers/net/i40e/i40e_ethdev.h |  1 +
 drivers/net/i40e/i40e_fdir.c   | 89 +++++++++++++++++++++++++++++++
 drivers/net/i40e/i40e_flow.c   | 95 +++-------------------------------
 3 files changed, 97 insertions(+), 88 deletions(-)
drivers/net/i40e/i40e_ethdev.h +1 -0
index 98433e86b..8ca6d8657 100644
@@ -617,6 +617,7 @@ struct i40e_fdir_flow_ext {
 	uint8_t raw_id;
 	uint8_t is_vf;   /* 1 for VF, 0 for port dev */
 	uint16_t dst_id; /* VF ID, available when is_vf is 1*/
+	uint64_t input_set;
 	bool inner_ip;   /* If there is inner ip */
 	enum i40e_fdir_ip_type iip_type; /* ip type for inner ip */
 	enum i40e_fdir_ip_type oip_type; /* ip type for outer ip */
drivers/net/i40e/i40e_fdir.c +89 -0

102 lines not on this page · raw message

drivers/net/i40e/i40e_flow.c +7 -88

108 lines not on this page · raw message

Signature · 1 line
2.17.1