summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-02-29 11:16:46 -0800
committerDavid S. Miller <davem@davemloft.net>2008-02-29 11:16:46 -0800
commit405666db84b984b68fc75794069f424c02e5796c (patch)
treed764573e97686f02c2a47fc7da96aefe97cbc458 /samples
parentb7e729c4b4778aac4dbbec9dc070acde93071f4d (diff)
downloadop-kernel-dev-405666db84b984b68fc75794069f424c02e5796c.zip
op-kernel-dev-405666db84b984b68fc75794069f424c02e5796c.tar.gz
[ICMP]: Pass proper ICMP socket into icmp(v6)_xmit_(un)lock.
We have to get socket lock inside icmp(v6)_xmit_lock/unlock. The socket is get from global variable now. When this code became namespaces, one should pass a namespace and get socket from it. Though, above is useless. Socket is available in the caller, just pass it inside. This saves a bit of code now and saves more later. add/remove: 0/0 grow/shrink: 1/3 up/down: 1/-169 (-168) function old new delta icmp_rcv 718 719 +1 icmpv6_rcv 2343 2303 -40 icmp_send 1566 1518 -48 icmp_reply 549 468 -81 Signed-off-by: Denis V. Lunev <den@openvz.org> Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud