(6/6) ipvs -- get rid of skb_linearize
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
In message <[email protected]> you write:
Quoted 3 lines
We have another solution for this problem, may be it is
better the following stuff to be included now. Rusty, Dave? Is someone willing to review this before inclusion?
Sure...
Quoted 8 lines
http://www.ssi.bg/~ja/ipvs-2.6.0-test2/readme.txt
- at least struct iphdr in first fragment, not shared
-
ip_defragis already called, soip_send_checkis still needed- then we add all needed checks for read and write access and extending the first fragment
Alexey's advice was not to pull packets we don't modify, but use skb_copy_bits, and use skb_ip_make_writable() where we do modify. This means that you don't have to care about shared or cloned skbs, it makes your intentions explicit, and it's more future-proof.
It's more invasive, but my experience with doing netfilter_ipv4 was that it made things much neater when finished. It helps to get rid of lots of the temporary variables, too, I've found (too easy to forget to update them).
Here's a patch series below which does this. Compiled, not tested. Please read and advise if you want to go this way:
http://www.kernel.org/pub/linux/kernel/people/rusty/patches/IPVS/ipvs_packet_app_pkt_return.patch.gz
http://www.kernel.org/pub/linux/kernel/people/rusty/patches/IPVS/ipvs_nonlinear_protocols.patch.gz
http://www.kernel.org/pub/linux/kernel/people/rusty/patches/IPVS/ipvs_nonlinear_scheduler.patch.gz
http://www.kernel.org/pub/linux/kernel/people/rusty/patches/IPVS/ipvs_nonlinear_apps.patch.gz
http://www.kernel.org/pub/linux/kernel/people/rusty/patches/IPVS/ipvs_nonlinear_ip_vs_core.patch.gz
http://www.kernel.org/pub/linux/kernel/people/rusty/patches/IPVS/ipvs_nonlinear_ip_vs_xmit.patch.gz
Thanks,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
Hello,
Quoted 19 lines · Rusty Russell
Quoted 2 lines
better the following stuff to be included now. Rusty, Dave? Is someone willing to review this before inclusion?
Sure...
Quoted 8 lines
http://www.ssi.bg/~ja/ipvs-2.6.0-test2/readme.txt
- at least struct iphdr in first fragment, not shared
-
ip_defragis already called, soip_send_checkis still needed- then we add all needed checks for read and write access and extending the first fragment
Alexey's advice was not to pull packets we don't modify, but use
skb_copy_bits, and useskb_ip_make_writable()where we do modify. This means that you don't have to care about shared or cloned skbs, it makes your intentions explicit, and it's more future-proof.
Quoted 4 lines
It's more invasive, but my experience with doing
netfilter_ipv4was that it made things much neater when finished. It helps to get rid of lots of the temporary variables, too, I've found (too easy to forget to update them).
Ok, thank you Rusty! We will need some time to check the
changes...
Regards
--
Julian Anastasov <[email protected]>