rdma: fix skip_ipv4_cksum behavior in scalar path 60/31960/2
authorTianyu Li <tianyu.li@arm.com>
Fri, 9 Apr 2021 07:51:46 +0000 (15:51 +0800)
committerBeno�t Ganne <bganne@cisco.com>
Wed, 14 Apr 2021 12:05:49 +0000 (12:05 +0000)
commit7cfc9a273e7691dabf610cb6d34923db3ad4bbf8
tree1e8f45e1c231f8f89bcc49bf6c70547f29eaba00
parent297af4f49f5a2da3b72877b665ac8e1eae0b7bdf
rdma: fix skip_ipv4_cksum behavior in scalar path

Current rdma input L3 validating behavior for scalar path is:
if any packet L3_OK flag matches, then unset skip_ip4_cksum.
The correct behavior should be if any packet L3_OK NOT match,
then unset skip_ip4_cksum. The logic is also different from
the vector path. This patch fixes the wrong behavior for scalar path.

Type: fix
Signed-off-by: Tianyu Li <tianyu.li@arm.com>
Change-Id: I5ca5ed3aa0c07d441f3c87b33f03ea8f7a3c9826
src/plugins/rdma/input.c