All of lore.kernel.org
 help / color / mirror / Atom feed
* Accessing conntrack memory on multicore machine
@ 2008-02-29 10:42 Nishit Shah
  2008-02-29 12:17 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Nishit Shah @ 2008-02-29 10:42 UTC (permalink / raw)
  To: netfilter-devel; +Cc: 'Patrick McHardy'

Hi,
            I have following setup.

[root@manage scripts]# cat /proc/interrupts 
           CPU0                 CPU1       
  0:     228177                547                   IO-APIC-edge     
          timer
  2:          0                    0                                XT-PIC 
              cascade
  4:        446                  0                     
IO-APIC-edge                serial
  8:          1                    1                      IO-APIC-edge 
              rtc
 16:        137                 0                      IO-APIC-level 
               eth0, eth10, eth12, eth6, eth8
 17:       1710                 0                      IO-APIC-level 
               eth1, eth11, eth13, eth2, eth7, eth9
 18:         54                  1                      IO-APIC-level 
               eth3, eth4
 19:       7454                 0                      IO-APIC-level 
               libata, eth5
NMI:          0                  0 
LOC:     228829             229844 
ERR:          0
MIS:          0

I want to bind interrupts on eth0 to CPU0 and eth1 to CPU1

       echo 1 > /proc/irq/16/smp_affinity
       echo 2 > /proc/irq/17/smp_affinity


Now,
            I am using CONNMARK  target to do mark on conntrack. Here
packets with direction IP_CT_DIR_ORIGINAL are marked with 1 and packets with
direction IP_CT_DIR_REPLY are marked with 2. Now as eth0 and eth1 are served
by different CPUs, is there chances of –m connmark will get wrong values of
conntrack mark ?


Rgds,
Nishit Shah

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Accessing conntrack memory on multicore machine
  2008-02-29 10:42 Accessing conntrack memory on multicore machine Nishit Shah
@ 2008-02-29 12:17 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2008-02-29 12:17 UTC (permalink / raw)
  To: Nishit Shah; +Cc: netfilter-devel

Nishit Shah wrote:
> Now,
>             I am using CONNMARK  target to do mark on conntrack. Here
> packets with direction IP_CT_DIR_ORIGINAL are marked with 1 and packets with
> direction IP_CT_DIR_REPLY are marked with 2. Now as eth0 and eth1 are served
> by different CPUs, is there chances of –m connmark will get wrong values of
> conntrack mark ?


Yes, you should mark the packet and not the connection since
the direction is a property of the packet.
--
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] 2+ messages in thread

end of thread, other threads:[~2008-02-29 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-29 10:42 Accessing conntrack memory on multicore machine Nishit Shah
2008-02-29 12:17 ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.