diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2016-04-07 15:16:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-11 15:11:59 -0400 |
commit | 61f1cef90a18122ff9832a897dc75738c14e710a (patch) | |
tree | 093f68d1aeadc7c9595ed4e1126c4c4cad426cd0 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 61618eeac3e6165684895481c4f58ea879c3d616 (diff) |
drivers: net: cpsw: fix port_mask parameters in ale calls
ALE APIs expect to receive port masks as input values for arguments
port_mask, untag, reg_mcast, unreg_mcast. But there are few places in
code where port masks are passed left-shifted by cpsw_priv->host_port,
like below:
cpsw_ale_add_vlan(priv->ale, priv->data.default_vlan,
ALE_ALL_PORTS << priv->host_port,
ALE_ALL_PORTS << priv->host_port, 0, 0);
and cpsw is still working just because priv->host_port == 0
and has never ever been changed.
Hence, fix port_mask parameters in ALE APIs calls and drop
"<< priv->host_port" from all places where it's used to
shift valid port mask.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions