The default fields of a received packet are loaded from firmware, which cannot be modified even users want to use different fields for RSS or filtering. Here adds a workaround to open more flexibilities of selecting packet fields for hash calculation or flow director to users. It also includes the modifications in testpmd to support the testing.
v2 changes: Solved the compilation issues. v3 changes: Support selecting more input set fields. Helin Zhang (2): i40e: add RSS granularity configuration app/testpmd: add test commands for RSS granularity app/test-pmd/cmdline.c | 115 ++++++++ drivers/net/i40e/i40e_ethdev.c | 628 ++++++++++++++++++++++++++++++++++++++++ drivers/net/i40e/i40e_ethdev.h | 6 + drivers/net/i40e/i40e_fdir.c | 31 ++ lib/librte_ether/rte_eth_ctrl.h | 108 ++++++- 5 files changed, 884 insertions(+), 4 deletions(-) -- 1.9.3