aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/igc/igc_ptp.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-04-15 10:37:53 -0700
committerDavid S. Miller <[email protected]>2021-04-15 17:03:33 -0700
commit38ebcf5096a86762b82262e96b2c8b170fe79040 (patch)
treee374d75ffd37f3053bf687938f8596aea6988f69 /drivers/net/ethernet/intel/igc/igc_ptp.c
parentb6faf160d0dac3c8654aa911e6e281541628d304 (diff)
scm: optimize put_cmsg()
Calling two copy_to_user() for very small regions has very high overhead. Switch to inlined unsafe_put_user() to save one stac/clac sequence, and avoid copy_to_user(). Signed-off-by: Eric Dumazet <[email protected]> Cc: Soheil Hassas Yeganeh <[email protected]> Acked-by: Soheil Hassas Yeganeh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_ptp.c')
0 files changed, 0 insertions, 0 deletions