aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorJianbo Liu <[email protected]>2025-06-19 09:48:51 +0000
committerSteffen Klassert <[email protected]>2025-06-20 08:39:19 +0000
commitb05d42eefac737ce3cd80114d3579111023941b8 (patch)
treea9aa71f463b7fc1ebbd22a4b9cae3b99d58ae2ca /drivers/pci/controller/dwc
parentnet: ti: icssg-prueth: Add prp offload support to ICSSG driver (diff)
downloadkernel-b05d42eefac737ce3cd80114d3579111023941b8.tar.gz
kernel-b05d42eefac737ce3cd80114d3579111023941b8.zip
xfrm: hold device only for the asynchronous decryption
The dev_hold() on skb->dev during packet reception was originally added to prevent the device from being released prematurely during asynchronous decryption operations. As current hardware can offload decryption, this asynchronous path is not always utilized. This often results in a pattern of dev_hold() immediately followed by dev_put() for each packet, creating unnecessary reference counting overhead detrimental to performance. This patch optimizes this by skipping the dev_hold() and subsequent dev_put() when asynchronous decryption is not being performed. Signed-off-by: Jianbo Liu <[email protected]> Reviewed-by: Cosmin Ratiu <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions