]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: Use is_zero_ether_addr instead of static and memcmp
authorJoe Perches <joe@perches.com>
Tue, 20 Mar 2018 17:35:47 +0000 (10:35 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 30 Mar 2018 10:20:44 +0000 (12:20 +0200)
commit69c71a91dd8c2fbac06cf8b7c778b298beba7978
tree97155c0dff13798902d2a5786cac579360377879
parent1fd2d796bdb68bed531751e118f1ddba157a45a2
netfilter: ipset: Use is_zero_ether_addr instead of static and memcmp

To make the test a bit clearer and to reduce object size a little.

Miscellanea:

o remove now unnecessary static const array

$ size ip_set_hash_mac.o*
   text    data     bss     dec     hex filename
  22822    4619      64   27505    6b71 ip_set_hash_mac.o.allyesconfig.new
  22932    4683      64   27679    6c1f ip_set_hash_mac.o.allyesconfig.old
  10443    1040       0   11483    2cdb ip_set_hash_mac.o.defconfig.new
  10507    1040       0   11547    2d1b ip_set_hash_mac.o.defconfig.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipset/ip_set_hash_mac.c