aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorWillem de Bruijn <[email protected]>2023-02-14 15:57:40 +0000
committerJakub Kicinski <[email protected]>2023-02-16 05:26:36 +0000
commit14ade6ba4120fb38fcb5033998882c5b3d591194 (patch)
treea1e1c6ca6657492cad217a349b73a10556bef625 /drivers/net/ethernet/intel/ice/ice_main.c
parentnet: phy: c45: genphy_c45_an_config_aneg(): fix uninitialized symbol error (diff)
downloadkernel-14ade6ba4120fb38fcb5033998882c5b3d591194.tar.gz
kernel-14ade6ba4120fb38fcb5033998882c5b3d591194.zip
net: msg_zerocopy: elide page accounting if RLIM_INFINITY
MSG_ZEROCOPY ensures that pinned user pages do not exceed the limit. If no limit is set, skip this accounting as otherwise expensive atomic_long operations are called for no reason. This accounting is already skipped for privileged (CAP_IPC_LOCK) users. Rely on the same mechanism: if no mmp->user is set, mm_unaccount_pinned_pages does not decrement either. Tested by running tools/testing/selftests/net/msg_zerocopy.sh with an unprivileged user for the TXMODE binary: ip netns exec "${NS1}" sudo -u "{$USER}" "${BIN}" "-${IP}" ... Signed-off-by: Willem de Bruijn <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions