-
- Downloads
[NETLINK]: Avoid pointer in netlink_run_queue
I was looking at Patrick's fix to inet_diag and it occured to me that we're using a pointer argument to return values unnecessarily in netlink_run_queue. Changing it to return the value will allow the compiler to generate better code since the value won't have to be memory-backed. Signed-off-by:Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/netlink.h 1 addition, 1 deletioninclude/net/netlink.h
- net/core/rtnetlink.c 1 addition, 1 deletionnet/core/rtnetlink.c
- net/ipv4/inet_diag.c 1 addition, 1 deletionnet/ipv4/inet_diag.c
- net/netfilter/nfnetlink.c 1 addition, 1 deletionnet/netfilter/nfnetlink.c
- net/netlink/af_netlink.c 10 additions, 8 deletionsnet/netlink/af_netlink.c
- net/netlink/genetlink.c 1 addition, 1 deletionnet/netlink/genetlink.c
- net/xfrm/xfrm_user.c 1 addition, 1 deletionnet/xfrm/xfrm_user.c
Loading
Please register or sign in to comment