Commit db06ea34 authored by Edward Cree's avatar Edward Cree Committed by David S. Miller

sfc: really check hash is valid before using it

Actually hook up the .rx_buf_hash_valid method in EF100's nic_type.

Fixes: 06888543 ("sfc: check hash is valid before using it")
Reported-by: default avatarMartin Habets <mhabets@solarflare.com>
Signed-off-by: default avatarEdward Cree <ecree@solarflare.com>
Reviewed-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b61fba5
...@@ -739,6 +739,7 @@ const struct efx_nic_type ef100_pf_nic_type = { ...@@ -739,6 +739,7 @@ const struct efx_nic_type ef100_pf_nic_type = {
.rx_remove = efx_mcdi_rx_remove, .rx_remove = efx_mcdi_rx_remove,
.rx_write = ef100_rx_write, .rx_write = ef100_rx_write,
.rx_packet = __ef100_rx_packet, .rx_packet = __ef100_rx_packet,
.rx_buf_hash_valid = ef100_rx_buf_hash_valid,
.fini_dmaq = efx_fini_dmaq, .fini_dmaq = efx_fini_dmaq,
.max_rx_ip_filters = EFX_MCDI_FILTER_TBL_ROWS, .max_rx_ip_filters = EFX_MCDI_FILTER_TBL_ROWS,
.filter_table_probe = ef100_filter_table_up, .filter_table_probe = ef100_filter_table_up,
...@@ -820,6 +821,7 @@ const struct efx_nic_type ef100_vf_nic_type = { ...@@ -820,6 +821,7 @@ const struct efx_nic_type ef100_vf_nic_type = {
.rx_remove = efx_mcdi_rx_remove, .rx_remove = efx_mcdi_rx_remove,
.rx_write = ef100_rx_write, .rx_write = ef100_rx_write,
.rx_packet = __ef100_rx_packet, .rx_packet = __ef100_rx_packet,
.rx_buf_hash_valid = ef100_rx_buf_hash_valid,
.fini_dmaq = efx_fini_dmaq, .fini_dmaq = efx_fini_dmaq,
.max_rx_ip_filters = EFX_MCDI_FILTER_TBL_ROWS, .max_rx_ip_filters = EFX_MCDI_FILTER_TBL_ROWS,
.filter_table_probe = ef100_filter_table_up, .filter_table_probe = ef100_filter_table_up,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment