Thread (11 messages) 11 messages, 6 authors, 2012-10-11

RE: [RFC net-next] treewide: s/ipv4_is_<foo>()/ipv4_addr_<foo>/

flat view

From: David Laight <hidden>
Date: 2012-10-11 08:21:50
Also in: lkml

ipv4 and ipv6 use different styles for these tests.

ipv4_is_<foo>(__be32)
ipv6_addr_<foo>(struct in6_addr *)
I presume there is a 'const' in there ...
Perhaps it'd be good to convert the ipv4 tests to the ipv6 style.
You don't want to force an IPv4 address (which might be in a register)
be written out to stack.
Taking the address also has implications for the optimiser.

	David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help