Skip to contentSkip to conversation

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

RFC New Murphy Yang 1 participant 1 message Mar 15, 2021 Network drivers

lore
Share & tools
lore
#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   | 88 +++++++++++++++++++++++++++++++
 drivers/net/i40e/i40e_flow.c   | 95 +++-------------------------------
 3 files changed, 96 insertions(+), 88 deletions(-)
drivers/net/i40e/i40e_ethdev.h +1 -0
index 1e8f5d3a87..c6ec071f44 100644
@@ -631,6 +631,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 +88 -0

100 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