kernel_optimize_test/net/l2tp
Wei Wang 26879da587 ipv6: add new struct ipcm6_cookie
In the sendmsg function of UDP, raw, ICMP and l2tp sockets, we use local
variables like hlimits, tclass, opt and dontfrag and pass them to corresponding
functions like ip6_make_skb, ip6_append_data and xxx_push_pending_frames.
This is not a good practice and makes it hard to add new parameters.
This fix introduces a new struct ipcm6_cookie similar to ipcm_cookie in
ipv4 and include the above mentioned variables. And we only pass the
pointer to this structure to corresponding functions. This makes it easier
to add new parameters in the future and makes the function cleaner.

Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-05-03 16:08:14 -04:00
..
Kconfig
l2tp_core.c
l2tp_core.h
l2tp_debugfs.c
l2tp_eth.c
l2tp_ip.c ipv4: l2tp: fix a potential issue in l2tp_ip_recv 2016-04-04 16:00:28 -04:00
l2tp_ip6.c ipv6: add new struct ipcm6_cookie 2016-05-03 16:08:14 -04:00
l2tp_netlink.c l2tp: use nla_put_u64_64bit() 2016-04-25 15:09:10 -04:00
l2tp_ppp.c l2tp: rely on ppp layer for skb scrubbing 2016-01-04 16:45:24 -05:00
Makefile