* Re[2]: [PATCH 05/19] netfilter: nf_conntrack_ipv6: improve fragmentation handling
@ 2012-08-22 5:01 Hans Schillstrom
2012-08-22 7:07 ` Julian Anastasov
0 siblings, 1 reply; 4+ messages in thread
From: Hans Schillstrom @ 2012-08-22 5:01 UTC (permalink / raw)
To: Jesper Dangaard Brouer
Cc: Patrick McHardy, netfilter-devel, netdev, Julian Anastasov,
Hans Schillstrom
Hi
>
>On Sun, 2012-08-19 at 21:44 +0200, Patrick McHardy wrote:
>> On Sun, 19 Aug 2012, Jesper Dangaard Brouer wrote:
>> > On Sat, 2012-08-18 at 14:26 +0200, Patrick McHardy wrote:
>[...]
>
>> > Don't I need to load some of the helper modules, or just the
>> > nf_conntrack_ipv6 module, or perhaps only nf_defrag_ipv6 ?
>>
>> Not with the entire patchset, just IPv6 conntrack is enough. Aith IPv6 NAT
>> the first packet of a connection must always be defragemented, independant
>> of an assigned helper.
>
>When loading "nf_conntrack_ipv6" I run into issues.
>
>When sending a fragmented UDP packet. With these patches, the IPVS
>stack will no longer see the fragmented packets, but instead see one
>large SKB. This will trigger a MTU path check in e.g.
>ip_vs_dr_xmit_v6() and an ICMPv6 too big packet is send back.
>
> IPVS: ip_vs_dr_xmit_v6(): frag needed
>
>Perhaps we could change/fix the MTU check in IPVS?
>(This would also solve issues I've seen with TSO/GSO frames, hitting
>this code path).
>
I ran into this as well,
try this for the mtu check.
if ((!skb->local_df && skb->len > mtu && !skb_is_gso(skb)) ||
(IP6CB(skb)->frag_max_size && IP6CB(skb)->frag_max_size > mtu)) {
/Hans
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re[2]: [PATCH 05/19] netfilter: nf_conntrack_ipv6: improve fragmentation handling
2012-08-22 5:01 Re[2]: [PATCH 05/19] netfilter: nf_conntrack_ipv6: improve fragmentation handling Hans Schillstrom
@ 2012-08-22 7:07 ` Julian Anastasov
2012-08-22 7:16 ` Julian Anastasov
0 siblings, 1 reply; 4+ messages in thread
From: Julian Anastasov @ 2012-08-22 7:07 UTC (permalink / raw)
To: Hans Schillstrom
Cc: Jesper Dangaard Brouer, Patrick McHardy, netfilter-devel, netdev,
Hans Schillstrom
[-- Attachment #1: Type: TEXT/PLAIN, Size: 532 bytes --]
Hello,
On Wed, 22 Aug 2012, Hans Schillstrom wrote:
> >Perhaps we could change/fix the MTU check in IPVS?
> >(This would also solve issues I've seen with TSO/GSO frames, hitting
> >this code path).
> >
> I ran into this as well,
> try this for the mtu check.
>
> if ((!skb->local_df && skb->len > mtu && !skb_is_gso(skb)) ||
> (IP6CB(skb)->frag_max_size && IP6CB(skb)->frag_max_size > mtu)) {
Better without local_df check, it is our job to
set it.
Regards
--
Julian Anastasov <ja@ssi.bg>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re[2]: [PATCH 05/19] netfilter: nf_conntrack_ipv6: improve fragmentation handling
2012-08-22 7:07 ` Julian Anastasov
@ 2012-08-22 7:16 ` Julian Anastasov
2012-08-23 14:49 ` Jesper Dangaard Brouer
0 siblings, 1 reply; 4+ messages in thread
From: Julian Anastasov @ 2012-08-22 7:16 UTC (permalink / raw)
To: Hans Schillstrom
Cc: Jesper Dangaard Brouer, Patrick McHardy, netfilter-devel, netdev,
Hans Schillstrom
[-- Attachment #1: Type: TEXT/PLAIN, Size: 736 bytes --]
Hello,
On Wed, 22 Aug 2012, Julian Anastasov wrote:
> On Wed, 22 Aug 2012, Hans Schillstrom wrote:
>
> > >Perhaps we could change/fix the MTU check in IPVS?
> > >(This would also solve issues I've seen with TSO/GSO frames, hitting
> > >this code path).
> > >
> > I ran into this as well,
> > try this for the mtu check.
> >
> > if ((!skb->local_df && skb->len > mtu && !skb_is_gso(skb)) ||
> > (IP6CB(skb)->frag_max_size && IP6CB(skb)->frag_max_size > mtu)) {
>
> Better without local_df check, it is our job to
> set it.
Ops, sorry. It seems now nf_ct_frag6_reasm (Patch 02/18)
will set head->local_df = 1, so we should check local_df
as Hans said.
Regards
--
Julian Anastasov <ja@ssi.bg>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re[2]: [PATCH 05/19] netfilter: nf_conntrack_ipv6: improve fragmentation handling
2012-08-22 7:16 ` Julian Anastasov
@ 2012-08-23 14:49 ` Jesper Dangaard Brouer
0 siblings, 0 replies; 4+ messages in thread
From: Jesper Dangaard Brouer @ 2012-08-23 14:49 UTC (permalink / raw)
To: Julian Anastasov
Cc: Hans Schillstrom, Patrick McHardy, netfilter-devel, netdev,
Hans Schillstrom
On Wed, 2012-08-22 at 10:16 +0300, Julian Anastasov wrote:
> Hello,
>
> On Wed, 22 Aug 2012, Julian Anastasov wrote:
>
> > On Wed, 22 Aug 2012, Hans Schillstrom wrote:
> >
> > > >Perhaps we could change/fix the MTU check in IPVS?
> > > >(This would also solve issues I've seen with TSO/GSO frames, hitting
> > > >this code path).
> > > >
> > > I ran into this as well,
> > > try this for the mtu check.
> > >
> > > if ((!skb->local_df && skb->len > mtu && !skb_is_gso(skb)) ||
> > > (IP6CB(skb)->frag_max_size && IP6CB(skb)->frag_max_size > mtu)) {
> >
> > Better without local_df check, it is our job to
> > set it.
Will the IPVS usage of local_df, conflict with Patrick's usage?
> Ops, sorry. It seems now nf_ct_frag6_reasm (Patch 02/18)
> will set head->local_df = 1, so we should check local_df
> as Hans said.
With Hans'es version of the MTU check, IPVS seems to work again (with
Patricks patches applied).
(Also spotted the GSO problem I had with IPv6 + DR, and send an upstream
fix...)
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Sr. Network Kernel Developer at Red Hat
Author of http://www.iptv-analyzer.org
LinkedIn: http://www.linkedin.com/in/brouer
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-23 14:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-22 5:01 Re[2]: [PATCH 05/19] netfilter: nf_conntrack_ipv6: improve fragmentation handling Hans Schillstrom
2012-08-22 7:07 ` Julian Anastasov
2012-08-22 7:16 ` Julian Anastasov
2012-08-23 14:49 ` Jesper Dangaard Brouer
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).