Networking Forums

Networking Forums > Computer Networking > Linux Networking > possible issues on SMP machine for Netfilter based kernel module

Reply
Thread Tools Display Modes

possible issues on SMP machine for Netfilter based kernel module

 
 
Rohit
Guest
Posts: n/a

 
      05-16-2007, 09:55 AM
I am writing a kernel module which keeps track of TCP packet transfer
in a structure which gets updated for every packet i see on this
connection.So far I have not added locking in my structure. If code
which modifies my struct when packet comes in and when packet goes
out ,modifies different field of structure , do i need to protect it
with locks ?? Will it happen in some machine architecture that my
code for modifying packets in one direction will execute at same
time ?? or this is what will happen on SMP systems and i should add
locking anyway. My code
executes at Netfilter hooks context. I am using LOCAL_IN and LOCAL_OUT
hooks from netfilter.

Thanks,
Rohit

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with netfilter in a kernel module Aashay Shringarpure Linux Networking 1 03-02-2009 06:58 AM
How to get data in kernel SEND buffer for a TCP socket from a netfilter based kernel module Rohit Linux Networking 0 05-10-2007 11:27 AM
How to detect TCP sequence number wrap around in a netfilter kernel module Rohit Linux Networking 0 05-10-2007 06:28 AM
How to send a tcp packet to same machine from a kernel module by creating a sk_buff struct will_u_tellmemore Linux Networking 0 01-11-2007 12:45 PM
killing a kernel thread ....... UDP server (kernel module)......... alex Linux Networking 0 09-20-2006 11:26 AM



1 2 3 4 5 6 7 8 9 10 11