diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-11-30 18:21:17 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-01 16:36:32 -0500 |
commit | b5d31f29402791d9d4fadddb2f2d507fefd95939 (patch) | |
tree | da16a058b9449b8ea98202663e4b6c3d367dd500 /drivers/net/ntb_netdev.c | |
parent | d0aef029b53c70d6261ef9d4bd827c861d51a8ef (diff) | |
download | linux-b5d31f29402791d9d4fadddb2f2d507fefd95939.tar.bz2 |
net: ethernet: ti: ale: optimize ale entry mask bits configuartion
The ale->params.ale_ports parameter can be used to deriver values for all
ale entry mask bits: port_mask_bits, port_mask_bits, port_num_bits.
Hence, calculate above values and drop all hardcoded values. For
port_num_bits calcualtion use order_base_2() API.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ntb_netdev.c')
0 files changed, 0 insertions, 0 deletions