* [net 0/2] Clean up netfilter cache on xmit-to-self.
@ 2010-07-22 19:54 Ben Greear
2010-07-22 19:54 ` [net 1/2] net: dev_forward_skb should call nf_reset Ben Greear
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Ben Greear @ 2010-07-22 19:54 UTC (permalink / raw)
To: netdev
These patches are against 2.6.34.1. The first one may be
worth submitting to stable. The second one is less critical
and should probably just go in the development tree.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [net 1/2] net: dev_forward_skb should call nf_reset
2010-07-22 19:54 [net 0/2] Clean up netfilter cache on xmit-to-self Ben Greear
@ 2010-07-22 19:54 ` Ben Greear
2010-07-22 19:54 ` [net 2/2] veth: Remove redundant timestamp assignment Ben Greear
2010-07-26 4:59 ` [net 0/2] Clean up netfilter cache on xmit-to-self David Miller
2 siblings, 0 replies; 8+ messages in thread
From: Ben Greear @ 2010-07-22 19:54 UTC (permalink / raw)
To: netdev; +Cc: Ben Greear
With conn-track zones and probably with different network
namespaces, the netfilter logic needs to be re-calculated
on packet receive. If the netfilter logic is not reset,
it will not be recalculated properly. This patch adds
the nf_reset logic to dev_forward_skb.
Signed-off-by: Ben Greear <greearb@candelatech.com>
---
:100644 100644 7ac33e5... 22eee4e... M net/core/dev.c
net/core/dev.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/core/dev.c b/net/core/dev.c
index 7ac33e5..22eee4e 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1482,6 +1482,7 @@ static inline void net_timestamp(struct sk_buff *skb)
int dev_forward_skb(struct net_device *dev, struct sk_buff *skb)
{
skb_orphan(skb);
+ nf_reset(skb);
if (!(dev->flags & IFF_UP) ||
(skb->len > (dev->mtu + dev->hard_header_len))) {
--
1.6.2.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [net 2/2] veth: Remove redundant timestamp assignment.
2010-07-22 19:54 [net 0/2] Clean up netfilter cache on xmit-to-self Ben Greear
2010-07-22 19:54 ` [net 1/2] net: dev_forward_skb should call nf_reset Ben Greear
@ 2010-07-22 19:54 ` Ben Greear
2010-07-26 4:59 ` [net 0/2] Clean up netfilter cache on xmit-to-self David Miller
2 siblings, 0 replies; 8+ messages in thread
From: Ben Greear @ 2010-07-22 19:54 UTC (permalink / raw)
To: netdev; +Cc: Ben Greear
The timestamp is already cleared in the dev_forward_skb
logic.
Signed-off-by: Ben Greear <greearb@candelatech.com>
---
:100644 100644 0cfbb3d... 161ee02... M drivers/net/veth.c
drivers/net/veth.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index 0cfbb3d..161ee02 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
@@ -181,11 +181,6 @@ static netdev_tx_t veth_xmit(struct sk_buff *skb, struct net_device *dev)
if (dev->features & NETIF_F_NO_CSUM)
skb->ip_summed = rcv_priv->ip_summed;
- /* Zero out the time-stamp so that receiving code is forced
- * to recalculate it.
- */
- skb->tstamp.tv64 = 0;
-
length = skb->len + ETH_HLEN;
if (dev_forward_skb(rcv, skb) != NET_RX_SUCCESS)
goto rx_drop;
--
1.6.2.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [net 0/2] Clean up netfilter cache on xmit-to-self.
2010-07-22 19:54 [net 0/2] Clean up netfilter cache on xmit-to-self Ben Greear
2010-07-22 19:54 ` [net 1/2] net: dev_forward_skb should call nf_reset Ben Greear
2010-07-22 19:54 ` [net 2/2] veth: Remove redundant timestamp assignment Ben Greear
@ 2010-07-26 4:59 ` David Miller
2010-07-26 5:01 ` David Miller
2 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2010-07-26 4:59 UTC (permalink / raw)
To: greearb; +Cc: netdev
From: Ben Greear <greearb@candelatech.com>
Date: Thu, 22 Jul 2010 12:54:46 -0700
> These patches are against 2.6.34.1. The first one may be
> worth submitting to stable. The second one is less critical
> and should probably just go in the development tree.
I'll apply the first one to net-2.6 and queue up for -stable
The second one will go to net-next-2.6
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [net 0/2] Clean up netfilter cache on xmit-to-self.
2010-07-26 4:59 ` [net 0/2] Clean up netfilter cache on xmit-to-self David Miller
@ 2010-07-26 5:01 ` David Miller
2010-08-05 18:43 ` Ben Greear
0 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2010-07-26 5:01 UTC (permalink / raw)
To: greearb; +Cc: netdev
From: David Miller <davem@davemloft.net>
Date: Sun, 25 Jul 2010 21:59:12 -0700 (PDT)
> From: Ben Greear <greearb@candelatech.com>
> Date: Thu, 22 Jul 2010 12:54:46 -0700
>
>> These patches are against 2.6.34.1. The first one may be
>> worth submitting to stable. The second one is less critical
>> and should probably just go in the development tree.
>
> I'll apply the first one to net-2.6 and queue up for -stable
>
> The second one will go to net-next-2.6
Actually it appears net-next-2.6 already has this change.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [net 0/2] Clean up netfilter cache on xmit-to-self.
2010-07-26 5:01 ` David Miller
@ 2010-08-05 18:43 ` Ben Greear
2010-08-05 18:58 ` David Miller
0 siblings, 1 reply; 8+ messages in thread
From: Ben Greear @ 2010-08-05 18:43 UTC (permalink / raw)
To: David Miller; +Cc: netdev
On 07/25/2010 10:01 PM, David Miller wrote:
> From: David Miller<davem@davemloft.net>
> Date: Sun, 25 Jul 2010 21:59:12 -0700 (PDT)
>
>> From: Ben Greear<greearb@candelatech.com>
>> Date: Thu, 22 Jul 2010 12:54:46 -0700
>>
>>> These patches are against 2.6.34.1. The first one may be
>>> worth submitting to stable. The second one is less critical
>>> and should probably just go in the development tree.
>>
>> I'll apply the first one to net-2.6 and queue up for -stable
As far as I can tell, this didn't make it into -stable yet?
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [net 0/2] Clean up netfilter cache on xmit-to-self.
2010-08-05 18:43 ` Ben Greear
@ 2010-08-05 18:58 ` David Miller
2010-08-05 19:29 ` Ben Greear
0 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2010-08-05 18:58 UTC (permalink / raw)
To: greearb; +Cc: netdev
From: Ben Greear <greearb@candelatech.com>
Date: Thu, 05 Aug 2010 11:43:37 -0700
> On 07/25/2010 10:01 PM, David Miller wrote:
>> From: David Miller<davem@davemloft.net>
>> Date: Sun, 25 Jul 2010 21:59:12 -0700 (PDT)
>>
>>> From: Ben Greear<greearb@candelatech.com>
>>> Date: Thu, 22 Jul 2010 12:54:46 -0700
>>>
>>>> These patches are against 2.6.34.1. The first one may be
>>>> worth submitting to stable. The second one is less critical
>>>> and should probably just go in the development tree.
>>>
>>> I'll apply the first one to net-2.6 and queue up for -stable
>
> As far as I can tell, this didn't make it into -stable yet?
It's sitting in my queue, I will send it out once 2.6.35 has been out
for about 1 week more just to double make sure there aren't any
unwanted side effects.
I never submit changes to -stable immediately unless the change is
painfully obvious and has no possible unwanted side effects. I always
wait a week or even more sometimes.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [net 0/2] Clean up netfilter cache on xmit-to-self.
2010-08-05 18:58 ` David Miller
@ 2010-08-05 19:29 ` Ben Greear
0 siblings, 0 replies; 8+ messages in thread
From: Ben Greear @ 2010-08-05 19:29 UTC (permalink / raw)
To: David Miller; +Cc: netdev
On 08/05/2010 11:58 AM, David Miller wrote:
> From: Ben Greear<greearb@candelatech.com>
> Date: Thu, 05 Aug 2010 11:43:37 -0700
>
>> On 07/25/2010 10:01 PM, David Miller wrote:
>>> From: David Miller<davem@davemloft.net>
>>> Date: Sun, 25 Jul 2010 21:59:12 -0700 (PDT)
>>>
>>>> From: Ben Greear<greearb@candelatech.com>
>>>> Date: Thu, 22 Jul 2010 12:54:46 -0700
>>>>
>>>>> These patches are against 2.6.34.1. The first one may be
>>>>> worth submitting to stable. The second one is less critical
>>>>> and should probably just go in the development tree.
>>>>
>>>> I'll apply the first one to net-2.6 and queue up for -stable
>>
>> As far as I can tell, this didn't make it into -stable yet?
>
> It's sitting in my queue, I will send it out once 2.6.35 has been out
> for about 1 week more just to double make sure there aren't any
> unwanted side effects.
>
> I never submit changes to -stable immediately unless the change is
> painfully obvious and has no possible unwanted side effects. I always
> wait a week or even more sometimes.
Ok, no problem. I just wanted to make sure it hadn't been lost.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-08-05 19:29 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-22 19:54 [net 0/2] Clean up netfilter cache on xmit-to-self Ben Greear
2010-07-22 19:54 ` [net 1/2] net: dev_forward_skb should call nf_reset Ben Greear
2010-07-22 19:54 ` [net 2/2] veth: Remove redundant timestamp assignment Ben Greear
2010-07-26 4:59 ` [net 0/2] Clean up netfilter cache on xmit-to-self David Miller
2010-07-26 5:01 ` David Miller
2010-08-05 18:43 ` Ben Greear
2010-08-05 18:58 ` David Miller
2010-08-05 19:29 ` Ben Greear
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).