Skip to content

Commit

Permalink
Merge pull request #54 from sippejw/rss_offload
Browse files Browse the repository at this point in the history
Assign RSS offload type with NIC supported values
  • Loading branch information
thearossman authored Sep 7, 2024
2 parents ad405d5 + dc4c985 commit ae34332
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/port/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ impl Port {
port_conf.rx_adv_conf.rss_conf.rss_key = SYMMETRIC_RSS_KEY.as_ptr() as *mut u8;
port_conf.rx_adv_conf.rss_conf.rss_key_len = RSS_KEY_LEN as u8;
port_conf.rx_adv_conf.rss_conf.rss_hf =
(dpdk::ETH_RSS_IP | dpdk::ETH_RSS_TCP | dpdk::ETH_RSS_UDP) as u64;
(dpdk::ETH_RSS_IP | dpdk::ETH_RSS_TCP | dpdk::ETH_RSS_UDP) as u64
& dev_info.flow_type_rss_offloads;
}

let max_rx_pkt_len = mtu_to_max_frame_len(mtu as u32);
Expand Down

0 comments on commit ae34332

Please sign in to comment.