]> git.baikalelectronics.ru Git - kernel.git/commit
tun: not use hardcoded mask value
authorLi RongQing <lirongqing@baidu.com>
Fri, 3 Aug 2018 07:50:02 +0000 (15:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Aug 2018 20:15:11 +0000 (13:15 -0700)
commit0f99a93654183fce49f0a13b7965d138186d3012
tree301dbbe983a0e3c3b750e084e1face19a655cd78
parent3533cf6874892d4a83b71ea6c9126802fafdfacc
tun: not use hardcoded mask value

0x3ff in tun_hashfn is mask of TUN_NUM_FLOW_ENTRIES, instead
of hardcode, define a macro to setup the relationship with
TUN_NUM_FLOW_ENTRIES

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c