Skip to content

Commit db06ea3

Browse files
ecree-solarflaredavem330
authored andcommitted
sfc: really check hash is valid before using it
Actually hook up the .rx_buf_hash_valid method in EF100's nic_type. Fixes: 0688854 ("sfc: check hash is valid before using it") Reported-by: Martin Habets <[email protected]> Signed-off-by: Edward Cree <[email protected]> Reviewed-by: Jesse Brandeburg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8b61fba commit db06ea3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/sfc/ef100_nic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,7 @@ const struct efx_nic_type ef100_pf_nic_type = {
739739
.rx_remove = efx_mcdi_rx_remove,
740740
.rx_write = ef100_rx_write,
741741
.rx_packet = __ef100_rx_packet,
742+
.rx_buf_hash_valid = ef100_rx_buf_hash_valid,
742743
.fini_dmaq = efx_fini_dmaq,
743744
.max_rx_ip_filters = EFX_MCDI_FILTER_TBL_ROWS,
744745
.filter_table_probe = ef100_filter_table_up,
@@ -820,6 +821,7 @@ const struct efx_nic_type ef100_vf_nic_type = {
820821
.rx_remove = efx_mcdi_rx_remove,
821822
.rx_write = ef100_rx_write,
822823
.rx_packet = __ef100_rx_packet,
824+
.rx_buf_hash_valid = ef100_rx_buf_hash_valid,
823825
.fini_dmaq = efx_fini_dmaq,
824826
.max_rx_ip_filters = EFX_MCDI_FILTER_TBL_ROWS,
825827
.filter_table_probe = ef100_filter_table_up,

0 commit comments

Comments
 (0)