Skip to contentSkip to conversation

New behaviour for early_drop()

PATCH Francesco Sportolari 1 participant 1 message Apr 14, 2003 netfilter

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · Patrick Schaaf

Hi Francesco,

I have some comments. First, thanks for taking the effort to implement this idea. Regarding space overhead, it's 8 byte (two 4-byte pointers) for the struct list_head, not 2 byte. By itself, that's still acceptable.

Yeah, you're right, my fault... it's two pointers, so 8 bytes :)

Quoted 5 lines

However, the additional locking (cross-CPU) will have an impact on high packet load performance. The traditional early_drop does not influence normal (nondropping case) operation in any way, so that's a new, additional serialization. I feel that's reason enough to make the whole thing optional, in some way.

I'm going to try this patch on a very busy firewall machine (dual Power3 IBM RS/6000), then i can give you some hints on the performance difference... I agree with you that this serialization introduces delay in the processing queue of the packet, but it can be good anyway.

Quoted 4 lines

Finally, a stylistic comment, also directed at the other developers here:
you add a list_pop() macro to the netfilter listhelp.h file. I notice that about half the macros in that file are written in BIG_LETTERS(), the rest is small_caps(). Why this variance? I cannot see any system!

I've only followed the style used for list_append() and list_del()... However i think that for the inline functions is acceptable to use low case.

Quoted 2 lines

best regards
Patrick

Ciao,

-- Francesco