net: ethernet: ti: ale: fix port check in cpsw_ale_control_set/get
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 1 Dec 2017 00:21:20 +0000 (18:21 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Dec 2017 21:36:33 +0000 (16:36 -0500)
commit97193601bb09e18265823f50dd6418d4be2122ce
tree2555c38a3494c7cd68ba9ad764ba38d4e73f140d
parent1971ab587bb087905ff94a079184b0608d0075ff
net: ethernet: ti: ale: fix port check in cpsw_ale_control_set/get

ALE ports number includes the Host port and ext Ports, and
ALE ports numbering starts from 0, so correct corresponding port
checks in cpsw_ale_control_set/get().

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw_ale.c