rdma: fix ipv4 checksum check in rdma-input node 29/37429/2
authorJieqiang Wang <jieqiang.wang@arm.com>
Wed, 21 Sep 2022 09:17:22 +0000 (17:17 +0800)
committerBeno�t Ganne <bganne@cisco.com>
Tue, 25 Oct 2022 15:18:02 +0000 (15:18 +0000)
commitbf93670c515da131f36809091c13d3a0638fff2a
tree39e8a79a5ac1c7d1b9a71f7d5a141b431c21502a
parent813c1bd257ddcc573422083bd66cc8b8ed79d5b2
rdma: fix ipv4 checksum check in rdma-input node

- cqe_flags pointer should be incremented accordingly otherwise only the
first element in cqe_flags will be updated
- flag l3_ok should be set for match variable when verifying if packets
are IPv4 packets with flag l3_ok set
- mask/match variables should be converted to network byte order to
match the endianness of cqe_flags
- vector processing of checking cqe flags will set return value to
0xFFFF by mistake if packet numbers are not multiple of 16(VEC256) or
8(VEC128)

Type: fix

Signed-off-by: Jieqiang Wang <jieqiang.wang@arm.com>
Change-Id: I9fec09e449fdffbb0ace8e5a6ccfeb6869b5cac1
src/plugins/rdma/input.c