* [net 0/2] Clean up netfilter cache on xmit-to-self.
@ 2010-07-22 19:09 Ben Greear
2010-07-22 19:09 ` [net 1/2] net: dev_forward_skb should call nf_reset Ben Greear
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Ben Greear @ 2010-07-22 19:09 UTC (permalink / raw)
To: linux-kernel
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] 5+ messages in thread
* [net 1/2] net: dev_forward_skb should call nf_reset
2010-07-22 19:09 [net 0/2] Clean up netfilter cache on xmit-to-self Ben Greear
@ 2010-07-22 19:09 ` Ben Greear
2010-07-22 19:09 ` [net 2/2] veth: Remove redundant timestamp assignment Ben Greear
2010-07-22 19:48 ` [net 0/2] Clean up netfilter cache on xmit-to-self David Miller
2 siblings, 0 replies; 5+ messages in thread
From: Ben Greear @ 2010-07-22 19:09 UTC (permalink / raw)
To: linux-kernel; +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] 5+ messages in thread
* [net 2/2] veth: Remove redundant timestamp assignment.
2010-07-22 19:09 [net 0/2] Clean up netfilter cache on xmit-to-self Ben Greear
2010-07-22 19:09 ` [net 1/2] net: dev_forward_skb should call nf_reset Ben Greear
@ 2010-07-22 19:09 ` Ben Greear
2010-07-22 19:48 ` [net 0/2] Clean up netfilter cache on xmit-to-self David Miller
2 siblings, 0 replies; 5+ messages in thread
From: Ben Greear @ 2010-07-22 19:09 UTC (permalink / raw)
To: linux-kernel; +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] 5+ messages in thread
* Re: [net 0/2] Clean up netfilter cache on xmit-to-self.
2010-07-22 19:09 [net 0/2] Clean up netfilter cache on xmit-to-self Ben Greear
2010-07-22 19:09 ` [net 1/2] net: dev_forward_skb should call nf_reset Ben Greear
2010-07-22 19:09 ` [net 2/2] veth: Remove redundant timestamp assignment Ben Greear
@ 2010-07-22 19:48 ` David Miller
2010-07-22 19:53 ` Ben Greear
2 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2010-07-22 19:48 UTC (permalink / raw)
To: greearb; +Cc: linux-kernel
Ben please submit networking patches with netdev on the CC: list.
You've been doing networking hacking for a very long time, so I'm
very surprised you failed to do this :-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [net 0/2] Clean up netfilter cache on xmit-to-self.
2010-07-22 19:48 ` [net 0/2] Clean up netfilter cache on xmit-to-self David Miller
@ 2010-07-22 19:53 ` Ben Greear
0 siblings, 0 replies; 5+ messages in thread
From: Ben Greear @ 2010-07-22 19:53 UTC (permalink / raw)
To: David Miller; +Cc: linux-kernel
On 07/22/2010 12:48 PM, David Miller wrote:
>
> Ben please submit networking patches with netdev on the CC: list.
>
> You've been doing networking hacking for a very long time, so I'm
> very surprised you failed to do this :-)
I've been using git-email for not so long..forgot to over-ride
the email addr. Will resend to netdev.
Thanks,
Ben
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-07-22 19:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-22 19:09 [net 0/2] Clean up netfilter cache on xmit-to-self Ben Greear
2010-07-22 19:09 ` [net 1/2] net: dev_forward_skb should call nf_reset Ben Greear
2010-07-22 19:09 ` [net 2/2] veth: Remove redundant timestamp assignment Ben Greear
2010-07-22 19:48 ` [net 0/2] Clean up netfilter cache on xmit-to-self David Miller
2010-07-22 19:53 ` Ben Greear
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox