net/ice: enable advanced RSS
PATCH 1/1 net/ice: enable advanced RSS
This patch supports the following features:
(1)inner header hash for tunnel packets, including comms package. (2)symmetric hash by rte_flow RSS action.
(3)input set change by rte_flow RSS action.
This patch depends on the following patches on patchwork:
(1)https://patchwork.dpdk.org/patch/58546/
[2/4] net/ice: rework for generic flow enabling
(2)https://patchwork.dpdk.org/patch/57137/
[v2,1/2] ethdev: add symmetric toeplitz hash support
(3)https://patchwork.dpdk.org/patch/57138/
[v2,2/2] app/testpmd: add symmetric toeplitz hash support
(4)https://patchwork.dpdk.org/patch/57601/
[1/2] ethdev: extend RSS offload types
(5)https://patchwork.dpdk.org/patch/57602/
[2/2] app/testpmd: add RSS offload types extending support
--- drivers/net/ice/ice_ethdev.c | 7 + drivers/net/ice/ice_hash.c | 540 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 547 insertions(+) create mode 100644 drivers/net/ice/ice_hash.c
drivers/net/ice/ice_ethdev.c +7 -0
@@ -1874,6 +1874,7 @@ static int ice_init_rss(struct ice_pf *pf)uint16_t i, nb_q;int ret =0 ;bool is_safe_mode = pf->adapter->is_safe_mode; +uint32_t reg; rss_conf = &dev->data->dev_conf.rx_adv_conf.rss_conf; nb_q = dev->data->nb_rx_queues;
@@ -1917,6 +1918,12 @@ static int ice_init_rss(struct ice_pf *pf)if (ret)return -EINVAL ; +/* Enable registers for symmetric_toeplitz function. */ + reg =ICE_READ_REG (hw,VSIQF_HASH_CTL (vsi->vsi_id)); + reg = (reg & (~VSIQF_HASH_CTL_HASH_SCHEME_M )) | + (1 <<VSIQF_HASH_CTL_HASH_SCHEME_S ); +ICE_WRITE_REG (hw,VSIQF_HASH_CTL (vsi->vsi_id), reg); +/* configure RSS for IPv4 with input set IPv4 src/dst */ ret =ice_add_rss_cfg (hw, vsi->idx,ICE_FLOW_HASH_IPV4 ,ICE_FLOW_SEG_HDR_IPV4 ,0 );
drivers/net/ice/ice_hash.c new file +540 -0
540 lines not on this page · raw message
Signature · 1 line
1.8.3.1