Skip to content

Commit 57910a4

Browse files
jcoetzee-coriginekuba-moo
authored andcommitted
nfp: add L4 RSS hashing on UDP traffic
Add layer 4 RSS hashing on UDP traffic to allow for the utilization of multiple queues for multiple connections on the same IP address. Previously, since the introduction of the driver, RSS hashing was only performed on the source and destination IP addresses of UDP packets thereby limiting UDP traffic to a single queue for multiple connections on the same IP address. The transport layer is now included in RSS hashing for UDP traffic, which was not previously the case. The reason behind the previous limitation is unclear - either a historic limitation of the NFP device, or an oversight. Signed-off-by: Jaco Coetzee <[email protected]> Acked-by: Simon Horman <[email protected]> Signed-off-by: Louis Peens <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ac2e8e3 commit 57910a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/netronome/nfp/nfp_net_common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,6 +2418,8 @@ static void nfp_net_rss_init(struct nfp_net *nn)
24182418
/* Enable IPv4/IPv6 TCP by default */
24192419
nn->rss_cfg = NFP_NET_CFG_RSS_IPV4_TCP |
24202420
NFP_NET_CFG_RSS_IPV6_TCP |
2421+
NFP_NET_CFG_RSS_IPV4_UDP |
2422+
NFP_NET_CFG_RSS_IPV6_UDP |
24212423
FIELD_PREP(NFP_NET_CFG_RSS_HFUNC, nn->rss_hfunc) |
24222424
NFP_NET_CFG_RSS_MASK;
24232425
}

0 commit comments

Comments
 (0)