net/ena: indicate Rx RSS hash presence
authorMichal Krawczyk <mk@semihalf.com>
Wed, 12 May 2021 10:13:44 +0000 (12:13 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 12 May 2021 12:19:02 +0000 (14:19 +0200)
commitb418f0d29977f031e18185d78198f2717bcfb361
tree39258ec0ed9d9d75eb32650bb09e7ac756b47269
parentc5c507100ea58e24f812401c77c66cdb9bceee36
net/ena: indicate Rx RSS hash presence

To make it possible to the app to determine if the hash was calculated
for the packet or not, the PKT_RX_RSS_HASH should be set in the mbuf's
ol_flags.

As the PMD wasn't setting that, the application couldn't check if there
is a hash in a proper way.

The hash is valid only if it's UDP or TCP and the IP packet wasn't
fragmented.

Fixes: e5df9f33db00 ("net/ena: fix passing RSS hash to mbuf")
Cc: stable@dpdk.org
Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Amit Bernstein <amitbern@amazon.com>
doc/guides/rel_notes/release_21_05.rst
drivers/net/ena/ena_ethdev.c