--- a/sys/dev/virtual/amazon/ena/ena-com/ena_com.c +++ b/sys/dev/virtual/amazon/ena/ena-com/ena_com.c @@ -2235,7 +2235,7 @@ int ena_com_set_hash_function(struct ena_com_dev *ena_dev) return ret; } - if (get_resp.u.flow_hash_func.supported_func & (1 << rss->hash_func)) { + if (!(get_resp.u.flow_hash_func.supported_func & (1 << rss->hash_func))) { ena_trc_err("Func hash %d isn't supported by device, abort\n", rss->hash_func); return ENA_COM_UNSUPPORTED;