]> 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)
commit5b21b4f18301a111e06d79998702470953c1f546
treecc39554e98289aeaf1b034067bcf0924d29dd9a5
parentb3b11154ba189b1da0e2ed102cc2a9f47fab00bf
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