Re: netfilter 07/41: arp_tables: unfold two critical loops in arp_packet_match()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Tuesday, March 24, 2009 - 2:39 pm

Jan Engelhardt a écrit :

memcmp() is fine, but how is it solving the masking problem we have ?

Also in the case of arp_tables, _a is long word aligned, while _b and _mask are not.

memcmp() in this case is slower, (and dont handle mask thing)

If you look various ifname_compare(), we have two different implementations.

So yes, a factorization is possible for three ip_tables.c, ip6_tables.c and xt_physdev.c




--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: netfilter 07/41: arp_tables: unfold two critical loops ..., Eric Dumazet, (Tue Mar 24, 2:39 pm)
[PATCH] netfilter: factorize ifname_compare(), Eric Dumazet, (Wed Mar 25, 4:27 am)
Re: [PATCH] netfilter: factorize ifname_compare(), Patrick McHardy, (Wed Mar 25, 9:32 am)