]> git.baikalelectronics.ru Git - kernel.git/commit
net/ncsi: Ensure 32-bit boundary for data cksum
authorTerry S. Duncan <terry.s.duncan@linux.intel.com>
Tue, 20 Aug 2019 00:24:02 +0000 (17:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 19:42:40 +0000 (12:42 -0700)
commitb202376fbd10f14bc9a2ba6cf1d01f756a58e519
treecc39554e98289aeaf1b034067bcf0924d29dd9a5
parentbc97f82be565a588b40a06d4f76f53772edf61f8
net/ncsi: Ensure 32-bit boundary for data cksum

The NCSI spec indicates that if the data does not end on a 32 bit
boundary, one to three padding bytes equal to 0x00 shall be present to
align the checksum field to a 32-bit boundary.

Signed-off-by: Terry S. Duncan <terry.s.duncan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ncsi/ncsi-cmd.c
net/ncsi/ncsi-rsp.c