net: macsec: use skb_ensure_writable_head_tail to expand the skb
authorRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Tue, 19 Dec 2023 14:53:26 +0000 (16:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Dec 2023 13:08:09 +0000 (13:08 +0000)
commitb34ab3527b9622ca4910df24ff5beed5aa66c6b5
treeb2cb7de7e075298661c14d14d5025cc235863356
parent90abde49ea85a8af9a56bbab8c419aefc77f919a
net: macsec: use skb_ensure_writable_head_tail to expand the skb

Use skb_ensure_writable_head_tail to expand the skb if needed instead of
reimplementing a similar operation.

Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c