DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Question about 'rxm->hash.rss' and 'mb->hash.fdir'
@ 2021-06-30  2:45 Min Hu (Connor)
  2021-06-30  9:34 ` Ferruh Yigit
  0 siblings, 1 reply; 6+ messages in thread
From: Min Hu (Connor) @ 2021-06-30  2:45 UTC (permalink / raw)
  To: dev, Ferruh Yigit, Thomas Monjalon

Hi, all
	one question about 'rxm->hash.rss' and 'mb->hash.fdir'.

	In Rx recv packets function,
	'rxm->hash.rss' will report rss hash result from Rx desc.
	'rxm->hash.fdir' will report filter identifier from Rx desc.

	But function implementation differs from some PMDs. for example:
	i40e, MLX5 report the two at the same time if pkt_flags is set,like:
******************************************
		if (pkt_flags & PKT_RX_RSS_HASH) {
			rxm->hash.rss = 			rte_le_to_cpu_32(rxd.wb.qword0.hi_dword.rss);
		}
		if (pkt_flags & PKT_RX_FDIR) {
			mb->hash.fdir.hi =
		rte_le_to_cpu_32(rxdp->wb.qword3.hi_dword.fd_id);
		}
********************************************

	While, ixgbe only report one of the two. like:
******************************************
		if (likely(pkt_flags & PKT_RX_RSS_HASH))
			mb->hash.rss = rte_le_to_cpu_32(
			    rxdp[j].wb.lower.hi_dword.rss);
		else if (pkt_flags & PKT_RX_FDIR) {
			mb->hash.fdir.hash = rte_le_to_cpu_16(
			    rxdp[j].wb.lower.hi_dword.csum_ip.csum) &
			    IXGBE_ATR_HASH_MASK;
			mb->hash.fdir.id = rte_le_to_cpu_16(
			    rxdp[j].wb.lower.hi_dword.csum_ip.ip_id);
		}
********************************************
	So, what is application scenario for 'rxm->hash.rss' and 
'mb->hash.fdir', that is, why the two should be reported? How about 
reporting the two at the same time?
	Thanks for  your reply.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-01  1:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-30  2:45 [dpdk-dev] Question about 'rxm->hash.rss' and 'mb->hash.fdir' Min Hu (Connor)
2021-06-30  9:34 ` Ferruh Yigit
2021-06-30 11:21   ` Min Hu (Connor)
2021-06-30 11:44     ` Slava Ovsiienko
2021-07-01  0:23       ` Min Hu (Connor)
2021-07-01  1:31     ` Xing, Beilei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).