diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-06-10 21:40:00 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-11 12:22:26 -0700 |
commit | 89fec474fa1ab2c754e48d29e1081a2c2bd22dc6 (patch) | |
tree | 7c616c5ef6c27aaae2681c10cd852cc43253987d /usr | |
parent | 4967373959cd8a437df92413ea932e638a0518b1 (diff) | |
download | linux-89fec474fa1ab2c754e48d29e1081a2c2bd22dc6.tar.gz linux-89fec474fa1ab2c754e48d29e1081a2c2bd22dc6.tar.bz2 linux-89fec474fa1ab2c754e48d29e1081a2c2bd22dc6.zip |
net/tls: pass record number as a byte array
TLS offload code casts record number to a u64. The buffer
should be aligned to 8 bytes, but its actually a __be64, and
the rest of the TLS code treats it as big int. Make the
offload callbacks take a byte array, drivers can make the
choice to do the ugly cast if they want to.
Prepare for copying the record number onto the stack by
defining a constant for max size of the byte array.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions