login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
20
Re: [PATCH v3] netfilter: save the hash of the tuple in the original direction for latter use
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Changli Gao
Subject:
Re: [PATCH v3] netfilter: save the hash of the tuple in the original direction for latter use
Date: Friday, August 20, 2010 - 8:36 am
On Fri, Aug 20, 2010 at 11:29 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
quoted text
> Le vendredi 20 août 2010 à 23:22 +0800, Changli Gao a écrit : > >> I should keep the old way, but fix a race. >> >> if (unlikely(!nf_conntrack_hash_rnd_initted)) { >> get_random_bytes(&nf_conntrack_hash_rnd, >> sizeof(nf_conntrack_hash_rnd)); >> nf_conntrack_hash_rnd_initted = 1; >> } >> >> nf_conntrack_alloc() isn't called with in the nf_conntrack_lock. So >> the above code maybe executed more than once on different CPUs. It is >> easy to fix with the cmpxchg() trick. > > Sure, please fix the race first. > > But as I said, its not critical, if one or two conntracks are hashed on > wrong basis. They will eventually disappear after timeout. >
Yes, and it isn't critical. I think this fix should be in a separate patch. -- Regards, Changli Gao(
xiaosuo@gmail.com
) --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH v3] netfilter: save the hash of the tuple in the or ...
, Changli Gao
, (Fri Aug 20, 7:53 am)
Re: [PATCH v3] netfilter: save the hash of the tuple in th ...
, Eric Dumazet
, (Fri Aug 20, 8:10 am)
Re: [PATCH v3] netfilter: save the hash of the tuple in th ...
, Changli Gao
, (Fri Aug 20, 8:22 am)
Re: [PATCH v3] netfilter: save the hash of the tuple in th ...
, Eric Dumazet
, (Fri Aug 20, 8:29 am)
Re: [PATCH v3] netfilter: save the hash of the tuple in th ...
, Changli Gao
, (Fri Aug 20, 8:36 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate