From: Rusty Russell <rusty@rustcorp.com.au>
To: "David S. Miller" <davem@redhat.com>
Cc: Julian Anastasov <ja@ssi.bg>,
Stephen Hemminger <shemminger@osdl.org>,
Wensong Zhang <wensong@linux-vs.org>,
lvs-users@LinuxVirtualServer.org, netdev@oss.sgi.com
Subject: Re: Fw: Re: [PATCH] (6/6) ipvs -- get rid of skb_linearize
Date: Tue, 23 Sep 2003 00:45:06 +1000 [thread overview]
Message-ID: <20030922145239.976AE2C244@lists.samba.org> (raw)
In-Reply-To: Your message of "Sat, 20 Sep 2003 01:05:26 MST." <20030920010526.7d9a3ff4.davem@redhat.com>
In message <20030920010526.7d9a3ff4.davem@redhat.com> you write:
> 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...
> http://www.ssi.bg/~ja/ipvs-2.6.0-test2/readme.txt
> - at least struct iphdr in first fragment, not shared
>
> - ip_defrag is already called, so ip_send_check is 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.
next parent reply other threads:[~2003-09-22 14:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20030920010526.7d9a3ff4.davem@redhat.com>
2003-09-22 14:45 ` Rusty Russell [this message]
2003-09-22 22:53 ` Fw: Re: [PATCH] (6/6) ipvs -- get rid of skb_linearize Julian Anastasov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030922145239.976AE2C244@lists.samba.org \
--to=rusty@rustcorp.com.au \
--cc=davem@redhat.com \
--cc=ja@ssi.bg \
--cc=lvs-users@LinuxVirtualServer.org \
--cc=netdev@oss.sgi.com \
--cc=shemminger@osdl.org \
--cc=wensong@linux-vs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).