| 8949 | } |
| 8950 | |
| 8951 | static int |
| 8952 | i40e_pf_rss_reset(struct i40e_pf *pf) |
| 8953 | { |
| 8954 | struct i40e_hw *hw = I40E_PF_TO_HW(pf); |
| 8955 | |
| 8956 | int ret; |
| 8957 | |
| 8958 | pf->hash_filter_enabled = 0; |
| 8959 | i40e_pf_disable_rss(pf); |
| 8960 | i40e_set_symmetric_hash_enable_per_port(hw, 0); |
| 8961 | |
| 8962 | if (!pf->support_multi_driver) |
| 8963 | i40e_pf_global_rss_reset(pf); |
| 8964 | |
| 8965 | /* Reset RETA table */ |
| 8966 | if (pf->adapter->rss_reta_updated == 0) { |
| 8967 | ret = i40e_pf_reset_rss_reta(pf); |
| 8968 | if (ret) |
| 8969 | return ret; |
| 8970 | } |
| 8971 | |
| 8972 | return i40e_pf_reset_rss_key(pf); |
| 8973 | } |
| 8974 | |
| 8975 | /* Configure RSS */ |
| 8976 | int |
no test coverage detected