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)
commitf13b546847ff5862ea313f3e79010c52c3fe32b4
tree301dbbe983a0e3c3b750e084e1face19a655cd78
parent039b1d5e5862375b0da534bb75fc580eaa547d53
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