Skip to content

Commit b0780b0

Browse files
committed
Update RSS offload types to match NIC supported types
1 parent 68a5de2 commit b0780b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/port/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ impl Port {
294294
port_conf.rxmode.mq_mode = dpdk::rte_eth_rx_mq_mode_ETH_MQ_RX_RSS;
295295
port_conf.rx_adv_conf.rss_conf.rss_key = SYMMETRIC_RSS_KEY.as_ptr() as *mut u8;
296296
port_conf.rx_adv_conf.rss_conf.rss_key_len = RSS_KEY_LEN as u8;
297-
port_conf.rx_adv_conf.rss_conf.rss_hf =
298-
(dpdk::ETH_RSS_IP | dpdk::ETH_RSS_TCP | dpdk::ETH_RSS_UDP) as u64;
297+
port_conf.rx_adv_conf.rss_conf.rss_hf = dev_info.flow_type_rss_offloads;
299298
}
300299

301300
let max_rx_pkt_len = mtu_to_max_frame_len(mtu as u32);

0 commit comments

Comments
 (0)