ibmvnic: Use header len helper functions on tx
authorNick Child <nnac123@linux.ibm.com>
Wed, 7 Aug 2024 21:18:04 +0000 (16:18 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Aug 2024 05:09:18 +0000 (22:09 -0700)
commitb41b45ecee6ba74bd590b113be9f349c6b818b46
tree322c70aada747f5a0cd7916d290d632b2c55067a
parentdda10fc801a9d81829e624ef75ecdfc94f39b310
ibmvnic: Use header len helper functions on tx

Use the header length helper functions rather than trying to calculate
it within the driver. There are defined functions for mac and network
headers (skb_mac_header_len and skb_network_header_len) but no such
function exists for the transport header length.

Also, hdr_data was memset during allocation to all 0's so no need to
memset again.

Signed-off-by: Nick Child <nnac123@linux.ibm.com>
Link: https://patch.msgid.link/20240807211809.1259563-3-nnac123@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c