net/tls: byte swap device req TCP seq no upon setting
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 25 Apr 2019 19:32:04 +0000 (12:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Apr 2019 20:52:21 +0000 (16:52 -0400)
commit63a1c95f3fe48b4e9fe0c261b376e5e527b71b25
treeab34b48256309a918c45e6dfa87112a2926e0cd1
parentda68b4ad02343862fee1e3e8c6315984f16a4778
net/tls: byte swap device req TCP seq no upon setting

To avoid a sparse warning byteswap the be32 sequence number
before it's stored in the atomic value.  While at it drop
unnecessary brackets and use kernel's u64 type.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_device.c